work is meaningless without productivity, I could work really hard carrying rocks around my yard all day with nothing to show but a sore back
And indeed historically this was the actual rationale for a variety of punishments that really were carried out on huge numbers of convicts, including carrying heavy objects from one place to another and back or being forced to raise and lower weights that serve no purpose. "Arbeit Macht Frei" doesn't appear from nowhere as a unique evil idea.