Exactly, Especially when you look at how we choose to reform people by throwing them in solitary confinement, treating them cruelly, and putting them often in sub-human conditions.We've basically got a criminal justice system engineered for the social norms of the early 1800s that hasn't been modernized and at this point appears draconian, cruel, ineffective, wasteful, and highly incapable of being unbiased.
Not sure how you go about fixing that other than some serious federal soul-searching (read: studies, scientific analysis, etc...) and subsequent funding mandates or constitutional amendments to force the same at the local and state levels.
We aren't hurting anyone but ourselves with the system as it stands now.
Brain science clearly shows that when you put people in those conditions, that you actually modify their brain in a manner that makes them more aggressive, more selfish, more violent, and more dangerous. So if the goal of our justice system is to make people worse criminals, then we're doing a really good job of that. If our goal is to reform people, then well, we are terrible.