Not the law, not what is right or who has been virtuous. Just money. Or more specifically: who has the money.
If you are poor and you sue someone who is rich, they control that outcome. If you are rich and you sue someone who is poor, they (by default) control that outcome; there's nothing there. If you are both poor, a judge will often decide based who looks and sounds the less poor. If you are both rich, then (the equivalent of) actuaries decide the outcome.
Criminal lawsuits are similar. I do not care how much you fuck up in this country; The amount of time you spend in jail will be inversely proportional to the amount of money you can spend to fight it.