$$\begin{align*} x&\equiv 1\pmod2\\ x&\equiv 2\pmod3\\ x&\equiv 3\pmod4\\ x& \equiv 4\pmod5\\ x&\equiv 5\pmod6\\ x&\equiv 0\pmod7\\ \end{align*}$$
So the solution says we can eliminate $x\equiv 5(\bmod6)$ because the first two cases cover it, but I don't really know how it does. How do we solve it in cases like this where the moduli are not mutually relatively prime.
Yes we can eliminate it indeed
that is
$$x=6k+5 \implies x\equiv 5\pmod 6$$
Note that we can also eliminate $x\equiv 1 \pmod 2$ since we have that $x\equiv 3 \pmod 4$.
Then we can use CRT to solve the system: