The lesson being, of course, if some fraction of humanity is naughty enough, God's going to lay waste to the bunch of you (excepting Noah and his family), including infants, children, and other unquestionable innocents, because... Hey, He's God, shut up and take your smiting and don't ask questions or ask God to play fair...
Did I get that right, or does my catechism need a refresher?