You're not selling it at a loss though, you're defaulting on a loan obligation.
The bank takes the knock,carries on as if it's business as usual in an effort to prop up their own revenue.
Too big to fail I guess.
The bank also has rights on the property after it goes into default. They don't lose all their money.