Exactly this.

It is a question about an emotional or physical state at that time, and I only ask if I have time for an answer or care about the person I ask.
Just a few days ago a Man asked me Hows it going? and I answered "All is well today. How about yourself?" and he thought for a few seconds (this threw him off) then he went on about his back and other body issues. I listen, and then he starts telling about his Wife and her issues and she is going into surgery next week.
He was not prepared or expecting to go into this, but he did. Then started to apologize for going on, I said "It is ok, I aked." He thanked me for listening, I wish him well on these situations and we parted.
Always be ready for more than hi or do not ask a question.