What happens when you are in a nursing home and can longer pay your credit cards?

You will default on your credit card accounts. Being an unsecured loan, there is little a credit card company can do. That is a risk credit card companies take.

Regardless of why you can't pay, non-payment will result in default. The extent to which a credit card company will attempt to collect depends on whether or not they feel you have sufficient income.