I left a project once because the sponsor wasn’t letting us interact with the real customer to find the real need. That path only leads to doom and despair.
It is also not an appropriate framework for a responder to follow, only for an asker to think about what they should be asking. And far far far too many people read it and take away from it a belief that they need to find out the real reason a person is asking a question before answering.
When a person asks a question, you do not need to understand why they are asking it. It does not matter that you cannot guess why they want to do or know something. Assuming and digging for an XY problem is just looking for an excuse to not answer the question.
If the question has an answer and you know the answer, answer it and be done. The knowledge is valuable even for its own sake. If not to the person asking, then to someone else who has the same question for another reason. If you want to probe further, do it after answering the question.
Because, goddamn, if you think it's annoying to be asked about something that you think is the wrong thing to do, it's really fucking annoying for someone to demand to know your backstory before deigning to answer a question as asked.
It's a gross idealization that every problem can be directly solved, or is "shovel ready." In my world there are often oodles of blockers, dependencies, and preparations that have to be put in place to even start to solve X. Asking about Y and Z along the way? Par for the course.