The word "co-" means complement. Cosine is literally the "complement's sine," cotangent is the "complement's tangent," and cosecant is the "complement's cosecant."
The identity holds for any angle, not just angles between 0 deg and 90 deg. For an obtuse angle the complement is negative and the identity still holds wherever both functions are defined.
Next stepSwap the function to see the reverse: if sin(30 deg) = cos(60 deg), then cos(60 deg) = sin(30 deg) by the same identity.