People who just say "Hi" to me often don't get an answer at all.
I don't want to risk someone interrupting my chain of thought with some request that I can't / don't want to act on.
But if I respond to a "Hi" and then decide that I don't want to deal with the actual question, that's perceived as rude.
If you ask the question straight out, then I can decide to respond or not.