"Why" questions about notation can range into non-mathematical territory: Notation is not always perfectly logical or consistent.
This isn't an explanatory answer, but an extended comment about writing
$$
a \equiv b \pmod{c}
\tag{1}
$$
versus
$$
a \bmod{c} = b \bmod{c}.
\tag{2}
$$
In (1), mod $c$ is grammatically an adverb, modifying the binary relation "is equivalent to". Consistency dictates writing something like
$$
a \equiv_{\bmod{c}} b\qquad\text{or}\qquad a \equiv_{c} b.
$$
I'm not a historian, but believe the widespread use of the notation (1) at the school level arose in the New Math era of the 1950s. (It's easy to imagine how this "afterthought" notation (mod $c$) would work psychologically for students raised on arithmetic drills involving integers. I haven't a shred of evidence, however, and will keep my speculations private.)
In (2), by contrast, mod $c$ functions grammatically as an adjective, modifying the symbols $a$ and $b$. This is a more sophisticated viewpoint: Instead of relating integers $a$ and $b$ (which are familiar to young students), (2) equates residue classes mod $c$. That's already one reason to avoid (2) in an introductory setting.
To give a completely different reason, writing "$a \bmod{c}$" to denote a residue class is clumsy. The generic equivalence class notation $[a]_{c}$ would be preferable, or even $[a]$ if the modulus $c$ were fixed during the discussion/computation. One does in fact see $[a] = [b]$ in introductory algebra at the university level.
Honestly, even square brackets are cumbersome. (They can also cause perplexing LaTeX errors when Cayley tables are typeset as arrays. Exercise: Why?) Between friends and in private, you might as well denote the residue class simply as "$a$" if the modulus is fixed, so that mod $7$ you have, e.g.,
$$
5^{2015} \equiv -(2^{2015})
\equiv -(2^{3 \cdot 671 + 2})
\equiv -4
\equiv 3.
$$
Ideally: Mathematical notation conveys concepts concisely, precisely, and consistently across fields and disciplines.
In practice: Changing historical perspectives and notational habits, field-specific conventions and emphases, and computer typesetting capabilities influence the ways we express mathematics in writing. Even sub-specialities of pure mathematics may use mutually-incompatible notation, to say nothing of discussions between pure mathematicians and engineers (say).
The answer to the question at hand may be as banal as "(1) is more compact than (2)" or "that's just the way everyone writes it (in 2015)". The take-away message is: "Mathematical notation is not always logical or consistent, and making notation consistent is much harder than it might first appear."
Answer to Exercise:
If a square-bracketed expression follows a newline command \\
with only white space in between, LaTeX reads the expression as an optional argument, expecting a length.
\bmod
= binary mod, when you mean the operation that calculates the remainder of a division of one integer by another. – Jyrki Lahtonen Aug 14 '15 at 13:44