They're both based on an earlier flood myth. The flood story wasn't included in the Epic of Gilgamesh until after the flood story in the Bible. However they both reference an earlier flood story, and the direct lifting of entire lines from the earlier story indicates they are indeed derivatives.
Does this help a little?