You can't see the logic because you're focused on the wrong thing.
The mountain, in this case, need not be a metaphor; it probably isn't. However, the text doesn't say that the devil and Jesus could see all the kingdoms of the earth from the mountain; it says "Again, the devil *took Him to a...