the kids were participating in a pagan fertility ritual

In the movie The Wicker Man the school kids explain the significance of the Maypole dance to the visiting mainlander policeman.