As a simple case take $k=2, a\equiv b\pmod {p^2}\implies a\equiv b\pmod p.$
A constructive example for $a= 2, b=27, p =5$ will work, but needed is a general or non-constructive approach, so as to get the reasoning applicable generally in a formal manner.
I mean the reason for the no change in residue class, for a root of the modulus is not clear.
I can only work out the case when $a , b \lt p$, as it is the trivial case (with $a=b$) for the smaller modulus case.
$$a \equiv b \pmod{p^k}$$
$$a-b \equiv 0 \pmod{p^k}$$
$$\exists m \in \mathbb{Z}, (a-b) =p^km$$
$$\exists m \in \mathbb{Z}, (a-b) =p(p^{k-1}m)$$
$$a-b \equiv 0 \pmod{p}$$