Since the initial insight came in the form of a comment, rather than an answer, editing your original question to clarify—and even modify—the scope is appropriate.
You never want to make edits that change the substance of a question after it has received answers, since moving the goalposts after the fact is unfair. However, comments don’t count.
Once you’ve modified the question, you may want to ping the commenter who provided the intial insight and give them the opportunity to answer. Or, you might want to answer the question yourself, taking care to give credit to the user who got you on the right track.
In certain cases, you may still feel that the edits that would be required to the question are too extreme, even if you haven’t received any answers. In these cases, it may make more sense to ask a follow-up question. Keep the original as a “how” question, and then ask a second “why does this work?” question. You can always link to the original question from the follow-up question to provide context. Whether splitting it up into multiple questions is appropriate is, ultimately, a judgement call. And it is one best left to someone who is familiar with the topic. Consider that our goal is bite-sized problems and solutions (Q&A). We don’t want questions that are too broad or require extremely long answers, so if it keeps things clearer to split them up, then go ahead and do so. On the other hand, the “why” is often part and parcel of any good explanation of the “how”, so splitting them up may just make the useful information harder to find.