Historical Meaning (OED)
The OED traces "justice" to Old French justice and Latin iustitia, meaning the quality of being just, fair, impartial, and morally right.
A central classical idea was "giving each person his due"—what an individual was properly entitled to receive based on conduct and desert. Greek philosophy, Roman law, and medieval thought connected justice with rights, proportionality, obligations, and lawful judgment rather than enforcing identical outcomes across society.