Sometimes they're just goofing off. They'll also shoot about 4 feet into the air, take off flying across the yard, cackling as they do so. Younger birds do it more frequently, but some of my older hens play too. Or they're chasing bugs. If it seems aimless, more likely it's play.