My unwavering belief is that laws are not, and never have been, about "justice". The government is interested in its own survival, from the individual (reelection, lifetime monarchy, etc.) to the complete entity (both parties in the US almost invariably increase the government size).
Law is like that joke that parents don't want fairness; they want silence. The law wants a cooperative public, and will do (first) the minimum necessary to achieve that ("I'm tough on crime!!!"), and (second) whatever is in its own interest (speed traps, licensing as revenue, etc.).
Only with a cooperative public can the government afford to pursue survival and growth. If bread and circuses are enough, you'll get circuses and bread! If not, maybe public regulation and security theater is needed.
I'm not saying all politics is heartlessly unconcerned with the common good, but that the public's perception of the common good is more important to the law.