Proof.
$p(x) = (x-a)q(x) + r(x)$
Rearranging, $r(x) = p(x) - (x-a)q(x)$
Plug $x=a$, $r(a) = p(a) - (a-a)q(x)$
$r(a) = p(a)$
To me this seems like it only proves that $r(a) = p(a)$ for the specific instance where $x=a$. The textbook that I am using also states that this is true. It states that a proof will have to include the fact that $r(a)$ is a constant as $(x-a)$ is a first degree polynomial, and therefore, the remainder will always equal to $p(a)$. This makes sense to me, however, it still seems like it only applies for the specific instance where $x=a$, and does not prove the theorem.
Any explanation will be much appreciated. For reference I was using an A-level textbook.