There is some truth to this statement. Historically, work detail for prisoners benefitted society as a whole -- litter cleanup, public works projects, license plate manufacturing, etc.
compared to what, the rest of the economy or political establishment?
the difference is that the people getting screwed over were judged guilty of crimes by a jury of their peers or other due process.