Fairness for whom?
The problem with the history of law is not that there was ever a shortage of fairness, legality, and equity, but that the applied demographic was narrow and biased in favor of certain minority groups. Minority, but elite groups.
Rome, for instance: the cradle of legal ingenuity, where orators like Cicero waxed poetic about aequitas, equity.