The idea that criminals need education is actually pretty racist... the crimes we care about are violent and even young children know perfectly well that violence is wrong.
The real reason for jail is that society is largely self-regulating; it works because we have a critical mass of people doing the right thing with only the most minimal oversight.
So the law-abiding majority needs to see that criminals are punished so they don't feel like suckers for following the law, basically, so they'll continue being law abiding.
We also put people in prison to alleviate the daily terror and misery that career criminals inflict on their neighbors.
Lolwut. Education is a great way to spend time. Anyone can benefit. I said nothing about “need.”
But go on, call me a racist and lecture me condescendingly about why we put criminals in prison, that’s a super convincing.