As the OP, I can confidently tell you that you are absolutely in the wrong. You do not have sufficient information to pass this judgment.
I was emphatically not, "trying to make the situation better." Though that was the excuse that I would have made for myself. I was distracted, and wanting the problem to go away so I could get back to something else. (Which was rather less important.) I was throwing out suggestions before I had heard enough to say anything that had any chance of actually being useful. And if my mindset had been, "trying to make the situation better," I would have absolutely realized that.
And in this general scenario, you are assuming that you are being begged for help every time someone describes a problem to you. Literally, they are not. Maybe they are implying that request; maybe they are communicating something else instead.
I assure you that your general assumption is false, sometimes.
> But apparently we live in this bizarre world where emotions are always right.
No, but we do live in a world where emotions are always important. So much so that highly productive and well-beloved people commit suicide sometimes, in the extreme cases.
Emotions matter, certainly, or at least yours do - to you. When others' emotions also matter to you, you move beyond infant-like narcissism, and become a potentially productive member of society. Not productive in the sense of number of lines of code written, but in the sense that you are treasured, looked after, and sought out by others simply for yourself.