You've already done it. "I proved that for every composite number $n$, there is a prime factor $\leq \sqrt{n}$." If you have indeed proved this, then you already have the explanation.
Let's say $m = \lceil \sqrt{n} \rceil + 1$. Do you know if $m$ is prime or composite? If $m$ is composite, then it has a prime factor less than $\sqrt{n}$. But if $m$ is prime, it does not have a prime factor less than $\sqrt{n}$, for it is its own prime factor!
With your example of $n = 50$, we have $m = 8$. Obviously $8$ is composite, but if we were unsure, we'd only have to test its divisibility by four primes, namely $2, 3, 5, 7$.
Perhaps the sieve of Eratosthenes can clarify this for you. Write the numbers from $1$ to $50$ in a rectangular array. Circle $2$ and cross off all higher even numbers. Circle $3$ and cross off all higher multiples of $3$. But $6$ has already been crossed off on account of being even. Likewise you don't have to worry about $12$ or $18$, or $24$ etc., they should already be taken care of.
Do the same with $5$. The next number you need to cross off at this point is $25$. And when you get to $7$, the next number you need to cross off is $49$. If for some strange reason you neglected to cross $50$ off for being even, you should have crossed it off for being a multiple of $5$.