The story
From the name for the letter Z in the ICAO spelling alphabet, a reference to the equivalent nautical time zone (GMT), which has been denoted by a Z since about 1950. See the list of military time zones.
Etymology from Wiktionary, CC BY-SA 4.0.