The tradition of flying flags dates returned centuries, serving as a way of communication on battlefields

https://finnmzna046.ironwoodscope.com/posts/from-family-first-to-system-first-the-american-flag-as-a-symbol-in-a-shifting-educational-landscape

The custom of flying flags dates lower back centuries, serving as a method of conversation on battlefields. They conveyed messages of allegiance and victory, allowing armies to coordinate pursuits and recommendations with out verbal communique.