That goes both ways, as many of the people I've run into who just want sympathy, can bring a lot of stress on the listeners. E.g. I can't take hearing complaints about abusive partners, etc so that they feel a little better for the moment, then they march right back to them.
Growing up with a serious complainer caused me to instinctively try and fix issues, and to avoid if you don't want that type of help.
My bigger point was that if you consciously chose to sit or take a walk with that person and if you truly care then you should make sure they feel listened to and understood before giving advice -- if you give advice at all.
This presupposes that you care about that person which I'll immediately agree is not a given for most people you'll ever meet.
If someone is the recipient of that kind of complaining as a kid from a parent, it would also explain some ‘don’t even try that towards me’ reactions.
Nothing wrong with that, it's just that my mind immediately jumps to potential solutions.
But I was severely humbled on that front after I have allowed a super dark period in my life (7-8 years, still ongoing but is now being actively attacked and positive signs are starting to get visible). I began to understand that there are also situations where you can't do almost anything but you still need a kind word.
So I started giving that and only vaguely hinting at the potential of an advice (so subtle that most people missed it which I am very okay with) and lo and behold, the new people in my life love chatting with me.
We have a saying in our country: "You can't force-feed wisdom and shove it down people's throats like you would do for a sick person who still needs food".