Flags have been in some cases used as rallying features all the way through battles; soldiers would bring together round their colors for morale
https://jaidenbnki358.clearhavendigest.com/posts/flags-as-historical-artifacts-insights-into-the-civil-war-era-6
Flags have been every so often used as rallying elements at some point of battles; soldiers could acquire round their shades for morale guide while faced with overwhelming odds.