Slaves were forced to perform labor. These inmates are not forced to perform this labor, and they are compensated for it.
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.