Below is a more conceptual viewpoint which explains how the congruence equivalence relation is connected with the innate arithmetical structure (we show it is equivalent to a subgroup test).
We have $\ a\,R\,b {\overset{\rm\ def}{\color{}\iff}} a-b \in S,\,$ for $\,S = m\Bbb Z = $ all multiples of $\,m.\,$ Suppose more generally that $\,S\subset \Bbb Z\,$ is any set of integers containing $\,0.\,$ Checking the equivalence relation properties
reflexive: $\quad\ \ \, a\, R\, a \iff 0\in S,\ $ which is true by hypothesis
symmetric: $\,\ (a\, R\, b\,\Rightarrow\, b\, R\, a)\iff (a\!-\!b\in S\,\Rightarrow\, b\!-a\!\in S)$
transitive: $\ \ \ (a\, R\, b,\ b\,R\,c\,\Rightarrow\, a\, R\, c)\iff (a\!-\!b,\,b\!-c\in S\,\Rightarrow\,a\!-\!c\in S)$
If $\,S\,$ is closed under negation: $\,a-b\in S\,\Rightarrow\, b-a\in S,\,$ so $\,R\,$ is symmetric. If $\,S\,$ is closed under addition then $\,R\,$ is transitive: $\,a-b,\,b-c\in S$ $\,\Rightarrow$ $\, a-b\, +\, b-c = a-c\in S$.
The converse holds too, i.e. if $\,S\,$ satisfies these implications then it is closed under negation and addition, since $\,b=0\,$ in "symmetric" yields $\,a\in S\,\Rightarrow\, -a\in S,\,$ i.e. $\,S\,$ is closed under negation. Further $\,b=0,\, c=-d\,$ in the "transitive" implication shows that $\,S\,$ is closed under addition.
Thus $\,R\,$ is an equivalence relation precisely because $\,S = m\Bbb Z\,$ is closed under negation and addition (or, equivalently, $\,S\,$ is closed under subtraction). If you know group theory then you will recognize this as the subgroup test, i.e. $\,R\,$ is an equivalence relation $\,\iff S\,$ is a subgroup of the additive group of integers. The innate structure is clarified algebraically when one studies quotient groups and quotients rings (here $\,\Bbb Z/m\Bbb Z \cong $ integers mod $m).$
Remark $\ $ In your proof you are also using "mod" as a binary operator (in addition to the ternary equivalence relation of modular congruence). Be careful not to confuse the two. See this answer and this one for more on this distinction.
If you proceed as you do in $(ii)$ using $\, x\equiv y\pmod m\!\iff\! (x\bmod m) = (y\bmod m)$ then the proof is a special case of the fact that relations of the form $\ x\sim y {\overset{\rm\ def}{\iff}} f(x) = f(y)\ $ are always equivalence relations - with obvious proof. In your case $\,f(x) := x\bmod m.\,$ Again this is clarified when one studies quotient structures.