Flags were in some cases used as rallying points at some stage in battles; soldiers could bring together around their colorations for morale
https://cuingoebna.raindrop.page/bookmarks-75911290
Flags were usually used as rallying features for the period of battles; squaddies would gather round their colorings for morale support when confronted with overwhelming odds.