being everywhere present at the same time,
His great foreknowledge tells Him all these things, by foreknowledge. He's omnipresent because He's omniscient; omniscient because He's omnipresent.