I'm not sure that's the case here. It's a matter of knowledge transfer.
Lawyers know things. People with money can afford to get knowledge from lawyers. People without money cannot afford to get knowledge from lawyers.
It's not a problem with the "system" that mathematicians know more about math than the general public, and that people who have the money can hire a mathematician to do math for them.
It's a knowledge transfer problem. How do you solve that? You can't give every person a massive book of every law when they're born. It's impractical to store, and they'd be outdated the next day. All of the laws are online for anyone to read, but who has the time?