Why did Hashem destroy the world?

(יא) וַתִּשָּׁחֵ֥ת הָאָ֖רֶץ לִפְנֵ֣י הָֽאֱלֹהִ֑ים וַתִּמָּלֵ֥א הָאָ֖רֶץ חָמָֽס׃ (יב) וַיַּ֧רְא אֱלֹהִ֛ים אֶת־הָאָ֖רֶץ וְהִנֵּ֣ה נִשְׁחָ֑תָה כִּֽי־הִשְׁחִ֧ית כָּל־בָּשָׂ֛ר אֶת־דַּרְכּ֖וֹ עַל־הָאָֽרֶץ׃ (ס) (יג) וַיֹּ֨אמֶר אֱלֹהִ֜ים לְנֹ֗חַ קֵ֤ץ כָּל־בָּשָׂר֙ בָּ֣א לְפָנַ֔י כִּֽי־מָלְאָ֥ה הָאָ֛רֶץ חָמָ֖ס מִפְּנֵיהֶ֑ם וְהִנְנִ֥י מַשְׁחִיתָ֖ם אֶת־הָאָֽרֶץ׃

(11) And the earth was corrupt before God, and the earth was filled with thievery. (12) And God saw the earth, and, behold, it was corrupt; for all flesh had corrupted their way upon the earth. (13) And God said unto Noah: ‘The end of all flesh is come before Me; for the earth is filled with thievery through them; and, behold, I will destroy them with the earth.

רשי ד׳ה ותשחת

לשון ערוה ועבודה זרה

Rashi

expression of immorality and idolatry.

רשי

ותמלא הארץ חמס: גזל:

Rashi

and the earth became full of robbery: Robbery(from right in front of you)

(ג) כי מלאה הארץ חמס מפניהם שכלם גוזלים זה את זה הבעלים גוזלים את האריס בכח והאריס גוזל את הבעלים במרמה

(3) כי מלאה הארץ חמס מפניהם, for they all rob each other. The owners rob their leaseholders, the leaseholders rob the owners through deceit

(א) כי השחית כל בשר. אפילו בהמה חיה ועוף נזקקין לשאינן מינן:

For all flesh had corrupted: Even cattle, beasts, and fowl would mate with those who were not of their own species.

(ב) חמס. בגזל ועשק וקחת גם הנשים בחזקה

(א) ותשחת הארץ לפני אלהים וגו'. כי היו גוזלים פחות משוה פרוטה שאין מוציאין בדיינין ועיני הדין רואות ואין לאל ידו להציל דמעות העשוקים לכך נאמר לפני האלהים, לפניהם ממש ובסבה זו ותמלא הארץ חמס

(ב) וירא אלהים את הארץ והנה נשחתה. זה ע"ג. כי השחית כל בשר את דרכו, זה ג"ע.

The Or Hachayim writes, that if we hold by the sage's interpretation that Chamas means things such as bloodshed, incest, and idolatry, then it makes sense that everyone was destroyed. If, however, chamas refers robbery, then why are the victim's who are being robbed, getting killed as well? This is because the people who were being robbed, were involved in bloodshed, incest, and idolatry.

דכתיב (בראשית ו, יא) ותשחת הארץ לפני האלהים ותנא דבי רבי ישמעאל בכל מקום שנא' השחתה אינו אלא דבר ערוה ועבודת כוכבים דבר ערוה שנא' (בראשית ו, יב) כי השחית כל בשר את דרכו עבודת כוכבים דכתיב (דברים ד, טז) פן תשחיתון ועשיתם וגו'

As its written, "The land was corrupt before G-d". And a Baraisa of the academy of R' Yishmael taught: Anywhere that it says "corruption" (in the torah), It is only referring to sexual matters or idolatry. Sexual matters, as it says "For all flesh had corrupted its way". Idolatry, as it says, "Lest you become corrupt and make etc."

Ein Yaakov:

כי השחית כל בשר את דרכו על הארץ א״ר יוחנן מלמד שהרביעו

בהמה על חיה וחיה על בהמה והכל על אדם ואדם על הכל-For all flesh has corrupted his way upon the earth. R. Jochanan said: Infer from this that cattle, beast and men had intercourse with each other."

רמבן

חמס; הוא הגזל והעשק

Ramban

Thievery; this refers to robbery and fraud

רב אהרון

בדור המבול נאמר "ותשחת הארץ לפני הא-להים ותמלא הארץ חמס": הם גזלו זה מזה, חטפו זה את נשיו של זה - הם חשבו רק על ההווה, כל מחשבתם הייתה נתונה למילוי תאוותיהם ויצריהם. לא הייתה להם אחדות מינימלית, לא היה להם כל חזון לעתיד, כל אדם חשב רק על עצמו ועל הנאותיו הרגעיות. לשיא הגיעו הדברים בפסוק יב - "כי השחית כל בשר את דרכו על הארץ": "אפילו בהמה חיה ועוף נזקקים לשאינן מינן" (רש"י במקום). היו בדור זה סטייה מהמצב הנורמלי בטבע, עיוות חברתי וכלכלי וחציית כל הגבולות.

Rav Aharon Lichtenstein

In the generation of the flood, it says "And the earth was corrupt before God, and the earth was filled with thievery." They stole from each other, and they grabbed each other's women. They think only on the present. All of their thoughts were given over to filling their desires and inclinations. They didn't have even minimal unity. They didn't have a vision of a future, every person thought only about themselves and on their enjoyment in the moment. It reached a pinnacle in pasuk 12, when it said "For all flesh had corrupted their way upon the earth". As Rashi says, "Even cattle, beasts, and fowl would mate with those who were not of their own species." In this generation there was deviation from the normal way of things, and social and economical corruption that goes beyond all boundaries.