it is because you generated a factor of the form a^2 - b^2 = (a + b)(a - b), the difference of two squares. And why not? They are just exercises, training wheels for a rigorous future math scrimages, if you mind. And multiplicity of roots often comes out handy with some other textbooks . . . .