It's effectively slave labour, as much as you may feel they should be punished, we as a society decided that we shouldn't force people to work and also people should be paid for their work. If you choose to lock someone up as punishment for a crime that's one thing, but if you want them to perform labour then they need to be paid for that labour, otherwise they're a slave