Prisons should absolutely offer gainful employment because that's one of the best ways they can be reintegrated into society which I would hope is the goal of prison!
If prisoners could be given a living wage then I would bet you would have less of them returning to selling drugs etc in order to survive because they leave prison with literally nothing to their name.