How come sin x+(sin x)(cos x) can be factored to sinx(1+cosx)?

What happened to the other sin x? I keep seeing a lot of questions like this and they do that.
6 answers 6