I was looking at a Mathologer video recently when he was showing how to prove Fermat's last theorem for powers of $4$. And the guy speaking went on this tangent which involved taking remainders when dividing by something. As he was speaking, he showed an equation and divided all the terms by $4$. And using some already known theory he showed how some of those terms gave only $1$ specific remainder. What I don't get is why if you divide all terms in an equation by a number, the remainders on each side of the equation are equal.
Here is what he basically meant if you don't understand what I'm saying:
$$3987^{12} + 4365^{12} = 4472^{12}.$$
And he showed that this was false because apparently and even number raised to an even number, it will always be divisible by $4$ (Can someone show we why this is true too?) And when an odd number is raised to an even number, the only remainder is $1$ (Also this one as well please). So after dividing both sides of that equation with the number $4$, the first term on the left ($3987^{12}$) gives a remainder of $1$ (because its odd raised to even) and so does the other term on the left. But the term on the right when divided by $4$ gives remainder $0$. And so he concludes that if you add the remainders on the left it gives $1+1 = 2$, and the right gives $0$. And $2$ does not equal $0$, therefore the original equation was false.
So basically summed up, my question is: Why when you divide both sides of an equation by a number, the remainders on each side of the equation will be equal?