Genesis 6:5 The LORD saw that the wickedness of humankind was great in the earth, and that every inclination of the thoughts of their hearts was only evil continually. 6 And the LORD was sorry that he had made humankind on the earth, and it grieved him to his heart. 7 So the LORD said, “I will blot out from the earth the human beings I have created—people together with animals and creeping things and birds of the air, for I am sorry that I have made them.” 8 But Noah found favor in the sight of the LORD.
God was the creator of people whose “every inclination… was only evil continually”. So God decides on a do-over resulting in a great flood in which the only survivors are Noah and his family. Brutal, but… oh well. God is God. Yet I’m not sure the subsequent generations of people were any better. People sinned then and people sin now. It was only in Jesus that God nailed it. Of course, Jesus was both human and divine so…