I watched the video again and thought of something. I'd bet the whole deal started with one guy, bored, goofing off showboating to the gate one day. The next day the other side doesn't want to be shown up, mirrors it, add a few more days and bored border guards and a tradition is born. Now it's "just what we've always done."
It may have started even earlier with tribal troops trying to out do the Brit Regulars.
Remember, while the mountain tribes, (Afghans ) may still be little more than bandits, the low land Indians have had highly developed, and disciplined military forces longer than England has.
Another thing to remember, the Hindu Indian's, and Muslim Paki's hate each other , are at war in the Kashmir, and both developed nukes specifically for use on each other.