I guess if you look at pay as solely a result of 'work done' you'd come to this conclusion, and it should work this way, but really its got more to do with the relationship between employer and employee. A person in prison has a very different legal status than someone who doesnt and they do tend to get paid less.