Did the greeks assume these similar or identical gods and heroes were the result of cultural appropriation, or was the assumption that the one-true set of gods just traveled the world and so all cultures had seen them? Any other scenarios the ancients discussed regarding these obvious similarities?
For the Bronze Age and early Iron Age, you may be interested in my response to To what degree were Pantheons shared in the Late Bronze Age Near East?