All we know is that first civilizations were built near rivers. And at the time, there were no ships that were ocean worthy.
How do we know there were no ocean worthy vessels? I would say there was probably no river flooding before it ever rained.