There are over 200 flood legends worldwide. That’s a lot of different cultures passing down the same, or similar stories.
Of course, there was a huge flood in the past. First civilizations were founded in a River Valley. So naturally, all of them had a "great flood story".
Also, the Nile River flooded annually between May and September from ancient Egypt until the 20th century when dams were built.