It was America's breakup letter with England.
They were most likely feeling proud spirtual and happy
This is shown in this part of the hymn.
Glory! Glory! Hallelujah! Glory! Glory! Hallelujah
Glory! Glory! Hallelujah! His truth is marching on
Explanation:
search it in Goo....gle there gives you the answer