Recall $\,\ a\equiv b\pmod {\!n}\!\color{#c00}\iff\! (\overbrace{a\ {\rm mod}\ n}^{\large a'}) = (\overbrace{b\ {\rm mod}\ n}^{\large b'}),\,$ so by Congruence Rules
$\qquad\qquad\ \begin{align} {\rm mod}\ n\!:\qquad x&\,\color{#c00}\equiv\, x'\\
y&\,\color{#c00}\equiv\, y'\\
\Rightarrow\qquad\qquad\ x+y&\, \equiv\, x' + y'\ \ \ \ \text{by Congruence Sum Rule}\\[.2em]
\Rightarrow\, (x+y)\ {\rm mod}\ n\, &=\, (x' + y')\ {\rm mod}\ n\ \ \ \ {\rm by}\ (\color{#c00}{\Rightarrow})\rm \ above\end{align}$
The same proof works for products by changing $+$ to $*,\,$ using the Congruence Product Rule., so
$$\bbox[5px,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 \end{align}}\qquad\qquad$$
Generally, as above, to prove an identity about mod as an operation it is usually easiest to first convert it into the more flexible congruence relation form, prove it using congruences, then convert back to operator form at the end (using the equivalence in the first line above).
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$.