When someone buys a house for 600k with no money down and then sells for 500k, it’s called “short sale”.
This is true if the lender agrees to take that loss. The lender may make the seller jump through hoops to do so, and typically only after the seller falls behind on their payments.