It doesn't really matter whether you 'see' anything in the integral (although sometimes picking your substitutions based on what you can see is useful). What you are doing, is defining a new variable in terms of the old one, and rewriting the expression you have entirely in terms of the new variable.
You can think of this example as defining $\theta$ by the formula:
$$\theta=\sin^{-1}\left(\frac{x}{a}\right)$$
from which it follows that $x=a\sin(\theta)$. Then to rewrite the expression in terms of $\theta$ you can simply replace all occurrences of $x$ with $a\sin\theta$.
This is analogous to beginning with an expression such as $x\sqrt{2x-1}$. Seeing the $2x-1$ inspires you to make the substitution
$$u=2x-1$$
(however you could've defined $u$ in this way, even if $2x-1$ didn't appear in the expression). It follows from this that $x=\frac{u+1}{2}$, so to write this expression in terms of $u$, you would replace all occurrences of $x$ with $\frac{u+1}{2}$. (Of course, you chose $u$ so that the expression under the square root would be equal to $u$, so you could instead replace the $2x-1$ immediately with $u$ -- you will get the same answer).