Almost every ancient civilization or culture, even those very far removed from the Holy Land, have a flood story. You knew that, right?
Similarity of stories has nothing to do with it being true or not. Water “cleaning things away” is evident to most people in life. It makes sense to have a story using water to purify.