We Are Not Perfect
The Torah goes out of it way to infer that Noah, while righteous, was not perfect. This is to teach us, that while our great leaders were righteous, they made mistakes, and they learned from their mistakes. That is what made them great.