If you can't afford an attorney, you can get one appointed, it is like that in every system AFAIK.
> Your argument seems to hinge on the "correct" party always winning, but that's far from the case.
Of course it does.
If the correct party does not usually win (with a few exceptions, being rounding errors) then your legal system, and democracy, is indeed very much broken.
If the police bust someone for murder, and this person gets sued, gets a fair trial, and gets incarcerated in jail for murder we, civilians/voters, must be able to assume that the system worked correctly. If this is not the case, if it is "normal" (too high percentage) innocent people get behind bars, that is a high priority problem. There's always going to be false positives, sure, but in general we must be able to assume one is a true positive.
Now, in English law the poor could sue, and win, if they're in the right. In American law, they can't afford a lawsuit. If they get sued for whatever, they'll be more likely to settle, without being on the good end of the stick. I can only define that as class justice.
There are limits to the claims, btw [1] [2]. Also, the amounts have to be reasonable.
Also, I believe @xyzal is correct in describing the difference between civil and common law. The problem you described is much less of a problem in civil law.
[1] https://en.wikipedia.org/wiki/Costs_in_English_law#Exception...
[2] https://en.wikipedia.org/wiki/Costs_in_English_law#Who_can_c...?