Why is this relevant? Are the proceeds of their labor given to the people they harmed? Who gets to measure the harm?
There is, however, a very clear conflict of interest caused by allowing the justice system to benefit financially from the people they imprison.