In the US, once you are in an elder care facility and you run out of money, the facility will try to keep you in. At that time they will apply to Medicaid in your name. After you die, Medicaid will try to claw back funds by putting a lien against your house. There are extremely complicated rules about exemptions etc.
https://apnews.com/article/medicaid-estate-recovery-nursing-...