Recall: same remainder $\!\iff\!$ congruent, i.e. with $\,\bar x = x\bmod n =$ remainder
we have $\ {\bar{\color{#0a0}a}\ =\ \bar{\color{#c00} b}^{\vphantom{i}}}\color{c00}\,\ \ \iff \ \ \,\color{#0a0}a\:\ \ \equiv\ \ \ \color{#c00}b \ \ \pmod{\!n},\:$
so $\ \overline{\color{#0a0}{x\!+\!y}}^{\vphantom{|^|}}\, =\, \overline{\color{#c00}{\bar x \!+\! \bar y}}
\color{#c00}\iff \color{#0a0}{x\!+\!y}\:\!\equiv\:\!\color{#c00}{\bar x \!+\! \bar y}_{\vphantom{|_|}},\,$ which is true by Congruence Sum Rule.
The same proof also works for products by using the $ $ Congruence Product Rule, $ $ so
$$\bbox[1px,border:1px solid #c00]{\bbox[6px,border:1px solid #c00]{\begin{align}
(x+y)\bmod n &\,=\, (x\bmod n + y\bmod n)\bmod n\\[.2em]
(x\,*\,y)\bmod n &\,=\:\! (x\bmod n \,*\, y\bmod n)\bmod n\\[.4em]
{\rm i.e.}\ \ \ \ \ \ \ \ \overline{x+y}\ &=\ \overline{\bar x+\bar y} \\
\overline{x\ *\ y}\ &=\ \overline{\bar x\ *\ \bar y}\\[.4em]
{\rm i.e.}\ \ \ \ h(x+y) &\,=\, h(x)+_{\small n}h(y)\\[.2em]
\ \ h(x\,*\,y) &\,=\, h(x)\,*_{\small n}h(y)\\
\end{align}}}\qquad\qquad$$
i.e. $\,h(x) := x\bmod n\,$ is a ring homomorphism from $\,\Bbb Z\,$ to $\,\Bbb Z_n\,$ which, being surjective (onto), enables transporting from $\,\Bbb Z\,$ to $\,\Bbb Z_n\,$ all the ring laws, e.g. associative, commutative, distributive.
Key Idea $ $ Generally, by proceeding as above, using said equivalence and congruence laws, erasing all $\!\bmod\!$ operations yields an equivalent congruence in any polynomial expression (i.e. where $\!\bmod\!$ appears in arguments of sums and products, but not in exponents). For example let's do that for a power analog of the above:
$$\begin{align}(\color{#c00}{g^b\color{#bbb}{\bmod n})^a\color{#bbb}{\bmod n}} \,&=\, \color{#0a0}{(g^a \color{#bbb}{\bmod n})^b\color{#bbb}{\bmod n}}\\[.2em]
\iff \color{#c00}{(g^b)^a} &\equiv\, \color{#0a0}{(g^a)^b}\!\!\pmod{\!n}
\end{align}\qquad\qquad$$
Since congruence arithmetic inherits all common (ring) arithmetic laws (commutative, associative, distributive), as above, it is much easier to use our well-honed arithmetical intuition to first prove these properties in congruence equation form, then at the last moment - if need be - compute their normal form reps by applying a $\!\bmod\!$ operation.
See here for much further discussion of $\!\bmod\!$ as an operator vs. (congruence) relation.
See here for how to interpret the above as transporting the ring operations on cosets in the quotient ring $\,\Bbb Z/n\,$ to corresponding operations on their normal-form (remainder) reps in $\,\Bbb Z_n$.