There is so much wrong with our justice system in the US (I'm not familiar with those outside, sorry):
Systemic racial and patriarchal prejudice
Money over laws - the rich can afford the best lawyers, so they get off with nothing while the poor get the full effects
Cronyism and bribery in judge positions to sway courts towards desired results
Sheriffs are elected and often are in it for pure personal profit at the expense of the citizens
The prison system that's for profit, creating reasons why people can't be released, even for minor infractions while they are paid per person in their systems.
The legal ability to use inmates as slave labor
The inability of inmates to better themselves through education and therapy.
The system is not based on rehabilitation but on punishment. Even if it was based on rehabilitation, there is potentials for horrible abuse of inmates, as seen from the past.
Over crowding due to the 4 above reasons, creating horrible living situations for inmates.
Gross overuse of solitary confinement which has been proven to cause insanity and mental health issues when done for even a day on an average person, let alone someone who is in the system due to systemic negative life situations that have created extensive generational trauma and mental health issues already existing.
I'm no lawyer or nuthin but this "guilt by association" thing kind of bugs me. I've had a lot of crazy friends throughout my life that while I'm just standing there drinking a Dr Pepper or something they'll haul off and do something random crazy out of the blue... like why would any of this be my fault?
Idk where to start honestly. I guess making more programs to have criminals reenter society more easily. So they arent attempted to go back into a life of crime.