You're thinking about this the wrong way.
First, ask yourself: Why is there the justice system and prisons?
The answer: To reduce occurrence of crime.
Now why are prisons meant to help reduce crime? By scaring people into not committing crimes? That obviously doesn't work, especially when many people live lives so bad that they can't see a way of improving their lives but by committing crimes, which is pretty much all the people in that document.
Now how would you actually get those people to stop committing crimes? The document actually shows that:
Educate them. Once they know enough to actually be able to meaningfully participate in modern society they see life entirely differently.
Only problem is: These people have reached that point and are barred from actually acting upon it.