The entire point of prison is to remove them from society. Why are we spending more resources on prisoners than people who've never commited a crime?
That is the immediate effect, for sure. But that isn't the issue.
Unless someone is convicted for life without parole, or a death penalty, then they likely will be released into the general population at some point.
Do you want them to have skills that might allow them to support themselves, or do you think a near term investment in education might be cheaper for society and more humane than releasing them with a situation where they have fewer opportunities to make a living?
Put a different way, this is about those who haven't committed crimes: those affected by future crime, and those who haven't yet committed crime but statistically are likely to (think children of the chronically incarcerated)