This is so true, and which is why makes learning from certain professors way more enjoyable than others. What you have explained is in some sense an explanation of 'thinking from the first principles' or 'intuition behind the concept', at least imo.
now get your damn car off my lawn
I think a lot of maths is created like this. I'm trying to solve problem P in domain D. I couldn't do that, but I've noticed that I could do it in subset D1 of the domain. If problem P was important enough and D1 large enough, I become very famous within mathematics and people start studying D1 by itself, without connection to P. After a generation or more a lot of experts in D1 might not know the original reason why someone decided to study it. Eventually some historians of science re-discover the original motivation and publish it as a curiosity.