I think that in order to explain how that balance gets achieved, some belief structures incorporate things like karma and reincarnation, IMO partially because so many people don't get brought to justice in their own lifetime. Equilibrium is the natural state of things, but in the small picture of human affairs, I think it is not.
Of course, this is all rather philosophical, and not in particular pertaining to the Japanese justice system.