This is a very annoying notational convention, but:
If $n$ is a positive integer, then $\sin^n(x)$ means $\big(\sin(x)\big)^n$. For instance, $\sin^2(x)$ means $\big(\sin(x)\big)^2$.
If $n$ is $-1$, then $\sin^{-1}(x)$ means the inverse function $\arcsin(x)$, instead of the reciprocal.
I'm not fully certain what happens for other values. I don't know if there's a consensus on what $“\sin^{-2}(x)”$ means.
The same stuff is true for the other trigonometric functions.
For what it's worth, for an arbitrary function like $f$, I like to write $f^{\circ n}(x)$ for $f(\dotsb(f(x)\dotsb)$, as described here, to avoid ambiguity like this. (In general, in mathematical writing, one should always explain such notations to the reader.)