Etymology
Today it means: The pole which marks the location of a hole Full definition →
From flag + stick.
Etymology from Wiktionary, CC BY-SA 4.0.