this is called "sancak koşuşu" literally means sacrificing everything to hold the banner up and high. its kind of a show where honor and courage is exhibited to the enemy indicating that the next wave will be eradicating the enemy at all costs.
its a tradition for the turks and exercised when encountered worthy foes.