Your intution is absolutely correct. But mathematically you need sin component with respect to the r vector. As the torque is defined as the cross product of f and r so it leads to the sin component. Because of the cross product the sin component of force and r become perpendicular. To generate a torque you need a pivot point otherwise the object will perform translational motion instead of rotation.
You can comment below for any further inquiry. Please provide a positive feedback.
In F=ma when summing the forces, I know they must all be in the same direction...