Thats good stuff for parades but a joke for real melees. Bayonet era melees were (when it occasionally happened) just a real messy crowd with random stabbing and clubbing and doing some fancy foot steps wouldnt bring you anywhere.
Actually not true when it came to few times CW melee happened. They are teaching you a base so you won't be thrown off balance. It's the same reason the modern military still teaches the same base with bayonet fighting.
When hundreds of men crash together in a big blob the worlds best balance wont help you at all. Dont try to convince me these exercises are anything other than aesthetical. And bayonet fighting in modern military? Oh boy
Well, I have to support Mack.
Those drilled movements happened alot in the combat.
If you look into the after action reports or letters, books of the veterans, that drill and melee combat did happen mostly! It wasnt always that chaotic like you said.
They continued to use the stuff, they learned in the camp.