If you’ve followed along in Genesis, you’ll notice the writers tracing a line through humanity. They aren’t telling us about things that happened through disconnected events. They want us to follow a specific lineage from Adam to Noah’s sons.
The entire story unfolds this way.