it doesn’t. all the flood stories are passed down from the REAL flood event described in the bible.
The Torah predates the Creation.