The union flag comes from a job called Guarding the Fort. It doesn't actually have anything to do with the forts in the game.
For more info on job products see http://forum.the-west.net/showthread.php?t=22878 especially the posts about Products and Jobs.