Sounds like an unjust law and/or an unfair enforcement of the law, rather than an argument that incarcerated people shouldn’t be forced to work.
Freed slaves also were unfairly scrutinized for eligibility to vote. Does that mean we should never work to guarantee the integrity of our voting systems?