You don't think it had something to do with the work of Carnot, Rumford, Kelvin etc?
of course the intellectual foundations go way back.
but that is the beauty of capitalism is that it lines up technology, science, demand, capital, production, distribution, etc.
We don’t get iPhones without all of the above. And when all of the above are present, that’s ...capitalism....
But yeah, you are so right. We can’t move forward without pure math, scientific research, etc. Incredibly important.