The frying pan/fire metaphor implies choosing between equally awful options, but the factory work is substantially better than the alternatives.
Of course, to rich westerners like you and me they are both unfathomably awful, but to the people concerned going from living on the streets to a modest bed indoors can be a huge life changing event.
Besides, having no better options absolutely does not mean that you're not getting shafted.