The line of reasoning is in fact circular; you need to know the derivative of the function to apply L'Hopital's rule in the first place.
One can (infamously) likewise apply this to
$$\lim_{x \to 0} \frac{\sin(x)}{x}$$
but
$$\begin{align*}
\frac{\mathrm{d}}{\mathrm{d}x} \sin(x) &= \lim_{h\to 0}\dfrac{\sin(x+h)-\sin x}{h} \\
&= \lim_{h\to 0}\dfrac{\sin x\cos h+\cos x\sin h-\sin x}{h} \\
&= \cos x\cdot\left(\lim_{h\to 0}\dfrac{\sin h}{h}\right)+ \sin x\cdot\left(\lim_{h\to 0}\dfrac{\cos h -1}{h}\right)
\end{align*}$$
which requires knowledge of the limit we originally sought! And if you don't know the derivative, how can you apply L'Hopital's rule to our original limit, which uses that definition?
That is, to find the original limit this way is to assume - without basis - what the derivative of sine is. (Of course, who's to say this is the only way you can find the derivative? If you can justify that the derivative is cosine some other way, that doesn't make use of this limit, then there is no issue.)
To find the derivative in your case with $f(x) = \sqrt x$, using L'Hopital's rule, is to assume what the derivative is before you've even found it.
Some discussion is on this MSE post here for the $\sin(x)/x$ limit.