You can divide by sin(3θ) on both sides but by doing so, you will be eliminating some of the solution. What you are eliminating is the case when sin(3θ) = 0.
To help understand, let's make up a simple problem. (x-1)x = 1/2(x-1). If you divide by (x-1) on both sides to solve, the answer is x = 1/2. But let's multiply it out and solve a different way.
(x-1)x = 1/2(x-1)
x2 - x = 1/2x - 1/2
2(x2 - x) = 2(1/2x - 1/2)
2x2 - 2x = x - 1
2x2 - 3x + 1 = 0
(2x - 1)(x - 1) = 0
(2x - 1) = 0 or (x - 1) = 0
x = 1/2 or x = 1
Plugging those numbers in, we see that both are truly correct answers.
So, by dividing by (x-1), the net result was we got the one answer (x = 1/2) but lost the other answer x = 1. Notice that the answer that was lost is when the divisor (x-1) = 0