That’s true, however the nearest analogue to non-criminal forced-labour ‘prisoners’ would be the military - and in the UK that makes deductions for food, housing and utilities.
Top of my head, I’d estimate an effective hourly rate of about £1 to £2 for a week’s work at minimum wage minus payment to the prison for accommodation and food - but then there is an issue of whether prison labour is of real economic value and not often a form of ‘make work’ ie is sewing mail-bags really worth £10 an hour? Perhaps 50p per hour (net) is actually a fair return for value produced?
If work doesn't provide value that is higher than minimum wage it is work not worth doing. It is not like we must provide prisoners work. We could offer them free education too instead. And not even pay them for taking it.
It might be worth doing if it’s of psychological or behavioural benefit to the prisoners ie it prevents boredom / fighting / depression, and inculcates an ‘employee state of mind’ (usefulness, discipline, and ‘earn to spend’).
Otherwise, you get institutionalized slavery, like we have now and is documented in this article.