‘What can I do for you?’ is often met with, ‘nothing’.
And because you know this, instead of asking the question you go ahead make an educated guess and take action without asking…
‘Here, I did this for you.’ is often met with, ‘thank you’.
You might not have done the exact right thing that was needed but it’s probably a lot better than nothing.