Part of it I suppose is the law of unintended consequences. It’s what happens when laws are hastily passed because “we have to do something NOW”.
Part of it is the prosecutorial practice of piling on charges and maximum sentences until “your grandkids are serving time” as an incentive to dispense with the whole trial by jury “nonsense” and just plead guilty in exchange for a reduced penalty.

