You’re operating on the false premise that the justice system is supposed to dispense justice. Nothing could be farther from the truth.
I don’t know why you would say that. The justice system is most assuredly SUPPOSED to dispense justice, although sadly it does not far too often.