I think that's being way too charitable.
In a world where people are incarcerated on a scale unprecedented in all of human history, and where prosecutorial success is measured by number of scalps taken, the assumption that this is plain malice designed to let the state rob a few more individuals of their freedom makes much more sense than it all being just a big pile of incompetence and misunderstandings.
That's a lot of work, a lot of malice, a lot of hate, from a lot of people, for a very meagre result.
If that's how you view your government you must live a really painful existence
That's the banality of evil.