The "solutions" sin(x)=0 are extraneous, so introduced as part of the working when you multiply through by tan(). They are not part of the original problem and you should explicitly reject them. The wiki page is decent. Their example is roughly solve
x+1 = 0
now multiply through by x
x^2 + x = 0
x(x+1) = 0
so "solutions" 0 and -1. Obviously when you multiply through by x, one extraneous solution will generally be x=0 as you'd have 0=0 after the mutliplicatoin, even when its not a solution to the original equation.
When you mulitply or divide an equation by an algebraic expression (or square or ...), the set of solutions of the before and after equations may be different.