I would say in regards to rehabilitation that we teach them exactly what they need to know about society in order to cope with coming back in, I do agree that if someone spent that long without freedom, and they served their time, then they should be free when they get out, with all rights given back.
I get that it's a terrible punishment to, sometimes worse then death for people that enjoy their freedom, I would argue that we continue to evolve what is the "correct" length of time for people to be in prison for one. And yeah we shouldn't be against someone turning their life around, but not to the extent that we waste resources on people getting a second chance, when there's a plethora of people still waiting for their first chance.