The story
The motion of the people repeatedly bending down and standing up is likened to emus bobbing their head as they forage on the ground.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A task assigned to a group of people, especially schoolchildren or army recruits, where they move around an area and pick up rubbish from the ground. Full definition →
The motion of the people repeatedly bending down and standing up is likened to emus bobbing their head as they forage on the ground.
Etymology from Wiktionary, CC BY-SA 4.0.