did you know the great wall of china was once called the ramparts of Magog?
Misappropriation of names has been common throughout history.
People saw the wall as an almost mythological structure, and wanted to
give it a name that symbolized that.
I believe the key here is talk of a nation from the North, combined with
names of people whose whereabouts were discernable.