For every day worked, inmates have days removed from their sentence and are paid for hours worked. Comparing this to slavery is silly hyperbole.
To go further, this has perverse incentives in that jailing people provides a source of cheap labor. But that's not what I was talking about specifically.