Because that's the way you find a remainder.

For example if you want to solve the equation , in first instance you're going to search for a number wherefore , that means if you divide by you'll obtain remainder 0, in this case if you enter -1 you see so the remainder is 3. To have a closer look you can make the Horner scheme.