The idea is that its better for society to hit the reset button, pay creditors what they can be paid out of liquidation, and potentially have a productive member of society instead of somebody with absolutely nothing left to lose and maybe some grudges.
It's not like bankruptcy is painless.