You acting like those inmates didn't put themselves there? Oh I feel so bad for them that they made the choice to break the law.
It is morally unacceptable that anyone can profit from slave labor in a free country. Moreover, it also hurts honest businesses who are required to pay their workers normal wages.
Change laws and punishments so that fewer crimes result in jail time or removal from the workforce, for example. Especially for non-violent crimes. Improve conditions for poor folks, the mentally ill, and so on.