The story
From the concept of using a certain word used as a signal to others that they are allowed to commence on some event. While the term originally meant that a pre-decided word was to be used, the term has since evolved to mean giving allowance for an event to commence in general, not necessarily by a specific word.
Etymology from Wiktionary, CC BY-SA 4.0.