

It is not about the horizontal or the vertical component. It is about the angle θ. The side opposite to θ is taken as sin and the side adjacent to θ is taken as cos function.

In the diagram shown, as sin function is opposite side/ Hypotenuse, we find the horizontal component as sin function.

In this diagram, we find sin function to be the vertical component because of the angle orientation.
