UNICOR is a wholly owned government corporation not a private company. Average cost to taxpayers per incarcerated person is about $100K. So let them work for free up until that amount.
But even if it were private, how ethically is this worse than private companies making billions building weapons of mass destruction? Or platforms of mass surveillance?