 For thee have I seen righteous before me in this generation. Now God is expressing to Noah the reason he's saving Noah is because he found Noah to be righteous. And I'm sure that while Noah was building the ark, the rest of the world was not, absolutely was not paying attention to what Noah was doing. They may even made fun of Noah while he was building the ark because he just built a wooden box.