From the Super Mario Wiki
Flagpole Leap is a minigame in Dance Dance Revolution: Mario Mix, found in World 1. Mimicking Super Mario Bros., its goal is to get as high as possible on the flagpole. The player has to tap left and right alternately on the Dance Pad as fast as possible in order to make Mario or Luigi jump higher.
Why do people jump on flagpoles? Why not?