The of importance of ethics and sanctions in the story of Noah and the Flood is very important. Genesis 6:5-8 says:

The Lord saw how great the wickedness of the human race had become on the earth, and that every inclination of the thoughts of the human heart was only evil all the time. The Lord regretted that he had made human beings on the earth, and his heart was deeply troubled. So the Lord said, “I will wipe from the face of the earth the human race I have created—and with them the animals, the birds and the creatures that move along the ground—for I regret that I have made them.” But Noah found favor in the eyes of the Lord.

This passage says that there was a ton of wickedness on the face of the Earth. There was so much wickedness in the world that God actually regretted creating man. There was no one that served God any more! That is, except for Noah and his family.  Noah, his wife, their three sons, and their wives, were the only people in the entire world that still served God. That is the main reason God decided to destroy the Earth and save only Noah and his family. Genesis 6:1-4 says:

When human beings began to increase in number on the earth and daughters were born to them, the sons of God saw that the daughters of humans were beautiful, and they married any of them they chose. Then the Lord said, “My Spirit will not contend witha] humans forever, for they are mortalb]; their days will be a hundred and twenty years.” The Nephilim were on the earth in those days—and also afterward—when the sons of God went to the daughters of humans and had children by them. They were the heroes of old, men of renown.

Another reason that Noah and his family were saved could be the fact that Noah and his family were not Nephilim (Creatures that were created by an angel marrying a human girl. In the story of David and Goliath, Goliath is a giant, not a human. This could be proof that Goliath and his ancestors were Nephilim). Genesis 6:11-22 says:

11 Now the earth was corrupt in God’s sight and was full of violence. 12 God saw how corrupt the earth had become, for all the people on earth had corrupted their ways. 13 So God said to Noah, “I am going to put an end to all people, for the earth is filled with violence because of them. I am surely going to destroy both them and the earth. 14 So make yourself an ark of cypressc] wood; make rooms in it and coat it with pitch inside and out. 15 This is how you are to build it: The ark is to be three hundred cubits long, fifty cubits wide and thirty cubits high.d] 16 Make a roof for it, leaving below the roof an opening one cubite] high all around.f] Put a door in the side of the ark and make lower, middle and upper decks. 17 I am going to bring floodwaters on the earth to destroy all life under the heavens, every creature that has the breath of life in it. Everything on earth will perish. 18 But I will establish my covenant with you, and you will enter the ark—you and your sons and your wife and your sons’ wives with you. 19 You are to bring into the ark two of all living creatures, male and female, to keep them alive with you. 20 Two of every kind of bird, of every kind of animal and of every kind of creature that moves along the ground will come to you to be kept alive. 21 You are to take every kind of food that is to be eaten and store it away as food for you and for them.”

22 Noah did everything just as God commanded him.

This is proof that God cared about Noah and his family. More proof is him keeping his promise to send the Flood and save them. Some more is him placing the rainbow in the sky. The rainbow was actually a promise from God meaning that he will never Flood the entire Earth again, and he has never broken it, and he never will!