Taking the decision to file for bankruptcy is a big step. For many, taking such an action means that the debtor feels that their debts are too overwhelming to tackle alone. Debts can be a huge source of stress, particularly when creditors are being persistent in their collection efforts. By taking action to file for bankruptcy, debtors can halt foreclosure actions and make a start on repaying debts, either through a repayment plan or by liquidating assets.
Most credit cards are unsecured loans. They are not backed up by anything. The lender is placing their faith in you that you will repay the money they give you, perhaps because you have shown a history of faithful payments in the past.