(Genesis 9:18:) "And the sons of Noah <who went forth from the ark> were <Shem, Ham, and Japheth>." [Let our master teach us: who is commanded concerning being fruitful and multiplying, the man or the woman? Thus] our Rabbis taught: The man is commanded concerning being fruitful and multiplying, but not the woman. Rabbi Yochanan ben Beroqah says: Concerning both of them it says (Genesis 1:28), "And God blessed them, [and God said to them: Be fruitful and multiply]." Rather, the man is commanded more than the woman. Know for yourself that this is so, for Abraham exerted himself greatly to take a wife for his son Isaac, as it says (Genesis 24:2), "And Abraham said to his servant, the elder of his house, etc.," "and I will make you swear by the Lord, the God of heaven, [etc.,] that [you go] to my land, etc." (Genesis 24:3). So Abraham exerted himself concerning being fruitful and multiplying. And likewise Isaac sent Jacob, as it is said (Genesis 28:2), "Arise, go to Paddan-Aram, to the house of Bethuel." He sent him to take a wife fitting for him — not like the men of the generation of the flood, who were steeped in lewdness, who went after one who was not fitting for them. See what is written (Genesis 6:2), "And the sons of God saw, etc." The Holy One, blessed be He, said: Since they act thus, let them perish from the world for their own sake. And why was the beast destroyed with them? As it is said (Genesis 7:23), "from man unto beast" — because the beast too corrupted its deeds, and was going after a species that was not its own: the horse upon the donkey, the lion upon the ox, the serpent upon the tortoise. As it is said (Genesis 6:12), "And God saw the earth, and behold it was corrupt, [for all flesh had corrupted its way upon the earth]." It does not say "every man," but rather "all flesh" — even the beast, the wild animal, and the bird. Therefore they were blotted out with them. Rabbi Pinchas the Priest bar Chama said: Just as none entered the ark except the righteous, so too the beast, the wild animal, and the bird that were with them were righteous, as it is said (Genesis 8:19), "by their families." And does a beast have a family? Rather, that beast which had not joined itself to another species entered the ark; therefore the Holy One, blessed be He, gave them a lineage. And if a beast, a wild animal, and a bird, which are nothing, were given a lineage, is it not right that Noah and his sons be given a lineage? Immediately the Holy One, blessed be He, gave them a lineage [from what we have read] on the matter: "And the sons of Noah who went forth from the ark were, etc." (Genesis 9:18).
Why the Animals Drowned in Noah's Flood for Corrupting Their Way
Midrash Tanchuma Buber, Noach 18:1
ויהיו בני נח (בראשית ט יח), [ילמדנו רבינו מי הוא המצווה על פריה ורביה, האיש או האשה, כך] שנו רבותינו האיש מצווה על פריה ורביה, אבל לא האשה, ר' יוחנן בן ברוקה אומר על שניהם הוא אומר ויברך אותם אלהים [ויאמר להם אלהים פרו ורבו] (שם א כח), אלא שהאיש מצווה יותר מן האשה. תדע לך שכן הוא, שהרי הרבה חזק אברהם לישא אשה ליצחק בנו, שכן הוא אומר ויאמר אברהם אל עבדו זקן ביתו וגו' (בראשית כד ב), ואשביעך ב' אלהי השמים [וגו'] כי (אם) אל ארצי וגו' (שם שם ג), הרי אברהם חיזק על פריה ורביה, וכן יצחק שלח ליעקב, שנאמר קום לך פדנה ארם ביתה בתואל (שם כח ב), שלחו ליקח אשה ההוגנת לו, לא כשם שהיו אנשי דור המבול שטופים בזמה, ההולכים על מי שאינו הגון להם, ראה מה כתיב ויראו בני האלהים וגו' (שם ו ב), אמר הקב"ה הואיל וכך עושין יאבדו מן העולם לעצמן, ולמה נאבדה הבהמה עמה, שנאמר מאדם עד בהמה (שם ז כג), שאף הבהמה קלקלה מעשיה, והיתה הולכת על מין שאינו שלה, הסוס על החמור, הארי על השור, הנחש על הצב, שנאמר וירא אלהים את הארץ והנה נשחתה [כי השחית כל בשר את דרכו על הארץ] (שם שם יב), כל אדם אינו אומר, אלא כל בשר, אפילו הבהמה והחיה והעוף, לפיכך נמחו עמהן. אמר ר' פנחס הכהן בר חמא כשם שלא נכנסו לתבה אלא צדיקים, כך הבהמה והחיה והעוף שהיו עמהם היו צדיקים, שנאמר למשפחותיהם (שם ח יט), וכי יש לבהמה משפחה, אלא אותה הבהמה שלא נדבקה במין אחר נכנסה לתבה, לפיכך יחסם הקב"ה, ומה בהמה וחיה ועוף שאינן כלום נתיחסו, נח ובניו אינו דין שיתיחסו, מיד יחסם הקב"ה (ממה שכתוב) [מנין ממה שקרינו] בענין ויהיו בני נח היוצאים מן התבה וגו'.