I think it's best to illustrate this with an example.
Take for instance the ring of integers modulo $6$. If I have the system of equations:
$$ \begin{aligned} 2x + 2y &= 4 \\ 3x + 4y &= 3 \end{aligned} $$
I divide the first equation by $2$:
$$ \begin{aligned} x + y &= 2 \\ 3x + 4y &= 3 \end{aligned} $$
Subtract $3$ times the first equation from the 2nd equation to arrive at a solution for $y$:
$$ \begin{aligned} x + y &= 2 \\ 0 + y &= 3 \end{aligned} $$
Thus, $y = 3$ and $x = 5$.
From my understanding, this should be not possible as in ${\Bbb Z}_6$ there is no equivalence to $\frac12$ as $2$ does not have a multiplicative inverse in this ring, but yet I get a solution that works.
The best answer I have is that this is just a particular example in which dividing by $2$ was possible from construction, even if it makes no sense in the ring. I know I can invent situations where this would not be possible, for instance, if equation 1 was:
$$ 1x +3y = 1 $$
I'm curious if there is anything else at play here, or if it's just luck of construction that an answer could be found.