God is perfect. But people often do wrong things.
God’s covenant (agreement) with Noah reminds us about the wrong things that we do. It is not like God’s words to the first people in Genesis 1:28-30. God spoke those words before people sinned. And he only promised good things then.
But God made the covenant with Noah after people had sinned. This covenant promised many good things to people. But God also warned people in the covenant. He spoke about murder. He warned people that they would be responsible for their evil behavior. And he warned them that God would punish them for evil deeds.
People would become evil. But God is kind. He promised never again to flood the whole world. And he used the rainbow to remind people about this promise.
Noah was a great servant of God. We have already studied how Noah was a righteous man. But Noah was not perfect. He did something that was very wrong. He drank too much wine. Some people believe fermentation did not exist prior to the flood. I don’t know. These same people try to excuse Noah’s drunkenness as just something that “happened” because he didn’t know how to hold his liquor. He had never experienced wine before, etc. etc.