There is confusion about what happens when a person leaves debts still outstanding after they have died. Debts are usually payable out of the assets a person leaves in their estate, although like many things, the position is not always straightforward.
This is a useful guide for you:
– https://www.comparethemarket.com/life-insurance/content/understanding-debt-after-death/