Bankruptcy is much more serious (in term of damage to credit) than foreclosure. For a homeowner who knows that he is “underwater” & has no chance of keeping his house, there’s no use in declaring bankruptcy just to delay the foreclosure. It’s better have foreclosure than bankruptcy.