The removal of their liberty is supposed to be punishment for their crime, and that's plenty of punishment. Ideally, they'd be reformed while in prison. And while I'm dreaming, they could build a nest egg by working there, instead of being exploited.
I'd like a pony, please.
Arguably community service under threat of imprisonment is also compelled labour. If you agree that's a valid punishment for a crime, then we're not really talking about whether compelled labour is a problem in and of itself so much as the specific conditions under which labour can be legitimately compelled.
That said there are multiple ways to do this. One is compelled labour the proceeds of which they'll never see, but perhaps work can go to lowering their sentence. Another can be deferred compensation, where they get a fixed stipend once out based on their work while incarcerated.
I can think of a bunch of other ways, but I'm not sure I agree that the compensation should be minimum wage. People fund the government via taxes, but criminals aren't just not paying into the system, they are actively draining it. I'm not sure garnishing wages they'd otherwise earn is in principle unjust anymore that income tax is unjust.
I'd call the difference of prison wage and the minimum wage lost money.