Agree. But another thing I must point out is that pure mathematics is an example of ‘doing stuff for the sake of doing stuff’ and it has had an incredibly long lasting influence, with physicists turning to pure mathematics research to aid with their own problems.
The solution just has to be a perfect fit with the problem to become practical in industry. We often do not see the practicality of such abstract ideas until they are abundant in use.