I used to cover bankruptcy so I've talked to a lot of people going through the process. And I didn't meet one who didn't feel bad about having to declare that couldn't pay their bills.
Generally, I do try to get people to do what it takes to avoid filing for bankruptcy but sometimes it is appropriate if you just don't have the money and won't have it, especially because of a job loss or illness.
So don't be so hard on yourself. You did a lot of things right. As for what gets wiped away, all unsecured consumer debt. That means if you include in your filing all your credit card debt it gets wiped out. But generally the credit card company, not your landlord takes. There are some rules about running up debt before filing so ask your bankruptcy attorney about that (and you should get one).
I'm actually relieved that you feel bad, because that means you care that someone won't get paid. But we have a bankruptcy system to allow people to get a fresh start. It's unfortunate for the businesses but it is the cost of doing business.