These are questions where the OP is asking about a piece of logic which is embedded in code that is very poorly written or is very new to a topic. Many times these questions are unclear - and arguably should be closed, but sometimes they offer an opportunity to clarify issues which may be helpful for others.
This could be described as "don't know what they don't know."
Is it better to try to help the OP and other readers, even if your answer ends up being slightly different than the question asked?
This is assuming that the question cannot be improved with comments.
For example the OP is confused about two different terms and asks a question that makes no sense because they don't understand either of them. Would it be better to clarify the two terms or close the question?
I don't believe this is a duplicate of How long should we wait for a poster to clarify a question before closing? because this question is aimed at helping someone who probably lacks the skills and experience to request help properly. This would be the case where someone posted a question and although there really is no way to answer what they asked, it is possible to help them learn and understand more about what they are working with.