Which was in turn learned from the Romans
Where do you think the Arabs got their information from? You must remember that, it was only the Western half of the Roman empire that fell. The Eastern half, later the Byzintine Empire survived for another thousand years.
