The overwhelming majority of people that go through the justice system are guilty. For every ambiguous charge, there are a dozen instances where someone was caught with drugs on their person,[1] clearly identified in a security tape robbing a store, etc. That's the bread and butter of the justice system.
Like every system, the courts have been optimized for the common case. That certainly has costs in the uncommon case--as optimizing for the common case always does. Maybe those costs are too much to bear. But it's not a simple issue of government being "rotten to the core."
[1] Whether you think having drugs should or should not be a crime is an entirely separate issue.