As I am doing revision, I stumble upon a proof in one of my computer science books (sparse with proofs). At one point they mention that to compute the equality of bit strings, then they check if $$a \bmod p = b \bmod p$$ and states that this is only true if $p$ divides $|a-b|$, which they denote as $$p \uparrow |a - b|.$$
Note that $p$ is a prime.
Why is this?