The anthem sung before a big match and the church word "antiphon" are the same word, borrowed twice. One copy wore down over a thousand years of English speech. The other was taken fresh and kept its shape.
The source is Greek antiphōnos, "responsive, sounding in answer," from anti, "in return," and phōnē, "voice." Its plural antiphōna became the name for verses sung responsively, with one group of voices answering another.
Old English borrowed the church word early, as antefn or ontemn, from Late Latin antefana. It meant a composition sung in alternate parts. Over the centuries the sounds collapsed. Middle English had anteme, and by the late 14th century the word meant a piece of sacred music, usually set to words from Scripture.
The spelling with "th" dates from the late 16th century. Etymonline calls it unetymological, perhaps a mistaken attempt to restore a Greek original. There was never a "th" in the original.
Around 1500 English borrowed the same Greek word again, this time through French and Medieval Latin, as "antiphon." Etymonline calls this a reborrowing of the word that had become anthem and had lost its original meaning. Antiphon stayed in church for responsive verses.
Anthem, meanwhile, kept widening. By the 1590s it could mean any song of praise or gladness. Later it was applied to national songs.
Britain's national song shows how that happened. The royal family's website says "God Save the King" was first publicly performed in London in 1745. In September that year, Prince Charles Edward Stuart had defeated King George II's army at Prestonpans. The bandleader at the Theatre Royal, Drury Lane, arranged the song for performance after a play. It was so popular that it was repeated nightly, and other theatres copied the custom. The song came to be known as the National Anthem at the beginning of the 19th century.
The adjective "anthemic," for music that feels like an anthem, is recorded from 1841.