Bankrupcy is no fun. All your assets are wiped out (house, cars, etc). Sometimes you are excluded from the banking system. So it's not "without consequence".
Lending money is a risky business. That is why you get interest. Getting people off the hook is not ideal, but neither is the inverse. From a societal point of view, this arrangement allows people to take risks that they may not have otherwise. And we're all better off because of it.