Prisoners cannot consent to many things, including labour.

It’s slave labour, whether you like it or not.