I've always thought a major issue with the criminal justice system is serving competing masters:
You want to punish people so OTHERS decide it would be a bad idea and don't try it
You want to punish people so THEY decide it was a bad idea, not worth doing again.
You want to redeem criminals, put them on a better path
You want to ensure the criminals do not post a further threat to society
But these goals contradict each other to a degree:
Punishing to send a message is something I suspect this only work for fringe crimes - most criminals aren't know for their expert cost/benefit analysis - and regardless, "send a message" punishment hurts efforts to redeem ("we're punishing you as a threat to others" isn't something that makes people think you're fair and worth listening too)
Punishing someone to ensure they think it's a bad idea probably works in terms of teaching cost/benefit, but there's the risk that you're teaching the opposite - Life in prison has got to suck, but if you get through it and discover there is no place in the outside world for you, you're socially ostracized, hard to employ, probably in a crappy financial situation...well, crime CAN pay, and you know you can survive the consequences if you do get caught (heck, at this point, crappy as it is, you're probably used to it - not enough to like it, but it would have some degree of comfort compared to the unfamilar-and-crappy situation you are in now. I could continue to armchair psychoanalyze the effects of living in a smaller community, but I think I've made enough unjustified statements.
Redemption directly pushes against the Punishment rules. Not because redeemed criminals can't accept the concept of "paying a debt to society" (I've always hated that phrase), but because (reportedly) rare is the prisoner that ARRIVES at prison redeemed, and starting with punishment and separating them from the situations that were the problems before generally does not help with dealing with those situations. (And this is assuming this is a "dumb" criminal that committed a stupid crime for stupid reasons. My mother told me as a young child to not commit a crime I couldn't retire on. I recommend this to parents of young children...it has an inherent logic that is harder for a child to dispute than "Just Don't". I credit it with keeping me out of trouble until I was old enough to appreciate the value of laws, respect, and morality. Anyway, there are doubtless OTHER criminals who truly had no better option - redeeming them by telling them how that is their fault and we'll punish them doesn't sound like it would succeed.
Sheltering society from the increased threat that a proven criminal represents largely doesn't care about Punishment or Redemption...but it doesn't help them at all. Redemption is easier of the criminals aren't removed from life. Punishment sounds like it is helped by this, but that goes back to the "what lesson are they learning", so if we're training career criminals, that makes the Sheltering concept currently a short term win for a long term loss.
All of this is based on my opinions that are largely formed from random articles and headlines (rarely in-depth) and likely too much influence from TV and movies (insert Law & Order DUM-DUM here) so no one should actually trust this. If, however, anyone has interesting insight or even actual knowledge to share, that'd be great - I have literally thought this general structure for the last 20+ years, so it obviously has some staying power in my brain even if I'm not motivated enough to do much research.