Another interpretation: A person boards a ship, and a beast is with him. And if a storm arose upon the sea, what do they do? They cast the beast into the sea and keep the person alive, because they do not have mercy upon the beast as they have mercy upon the person. But the Holy One, blessed be He, is not so. For just as He is merciful upon the person, so does He show mercy upon the beast. Know for yourself that this is so. For at the time when the Holy One, blessed be He, sought to destroy His world in the generation of the Flood, at the time when they sinned, He weighed the human against the beast, as it is said: "And the LORD said: I will blot out [... from man unto beast]" (Genesis 6:7). And when He came to be reconciled, just as He was reconciled to the children of man and had mercy upon them, so did He have mercy upon the beast, from what we have read on the matter: "And God remembered Noah [... and all the cattle]" (Genesis 8:1).
Why God Remembered the Animals in Noah's Ark
Midrash Tanchuma Buber, Noach 7:4
ד"א אדם עולה לספינה ועמו בהמה, ואם עמד סער בים, מה הם עושין, משליכין את הבהמה לים, ומקיימין את האדם, לפי שאינן מרחמין על הבהמה כשם שמרחמין על האדם, אבל הקב"ה אינו כן, שכשם שהוא רחמן על האדם, כך מרחם על הבהמה, תדע לך שהוא כן, שבשעה שבקש הקב"ה לאבד עולמו בדור המבול בשעה שחטאו, שקל את האדם כנגד הבהמה, שנא' ויאמר ה' אמחה [וגו' מאדם עד בהמה] (בראשית ו ז), וכשבא להתרצות כשם שנתרצה לבני אדם וריחם עליהם, כך ריחם לבהמה, ממה שקראנו בענין ויזכור אלהים את נח.