It seems like your boss maybe didn't hear or properly understand you reaching out for help. It was a brave thing to do, since it shows vulnerability.
But don't be too harsh on your boss either (maybe! I don't know the full situation). I don't know the full situation, but it is possible that when you asked for help maybe he felt like you're complaining about him. So he got defensive. I know that sounds a bit immature, but everyone's a bit immature sometimes.
Also, instead of framing it as pity, think of it as having compassion and understanding for yourself instead. I know it's hard to reframe it if you have a long habit of negative self talk, though (been there done that, and I still sometimes end up there accidentally sometimes)