AITA for saying "you need more friends"?

I recently went to visit a friend this winter. She lives in a big city and I live in a small town.

Her one bedroom was pretty cramped and had half of it set up for work, and half for living. I also noticed she had trouble finding community and I told her she can't heal without community.

She eventually exploded and said her house costs $3000 a month (compared to my $700) and she's exhausted.

I also said she should finish decorating and again she was mad because she just bought her apartment and things are expensive.

She told me she was annoyed because she's black and I'm white, and that my family is quite rich while she is trying hard to build her wealth. She said her and I have had completely different life experiences

I didn't mean my comments and I don't think I was an AH.

So reddit, AITA?