Because (almost) every legal battle is pay-to-win. Yes, lawyers understand the law, and they charge a whole lot for that knowledge. Unless the case the EXTREMELY in your favour, you're practically defenseless if your opponent out-moneyed you.
So I guess the hate is more towards the justice system, rather than just lawyers.