Protection of heirs from being saddled with outstanding loan payments in the event of your death is the main goal. It's especially important if your spouse or someone else is a co-signer on the loan in order to protect them from having to repay the debt. It also protects your spouse or heirs in states where heirs aren't protected from a parent's outstanding debts.