There is a good video from Niel deGrasse Tyson talking about learning.
https://m.youtube.com/watch?v=utedyJ7QRBs
His argument is learning is never a waste of time, even if you don't ever use and forget everything you studied. The simple act of learning is beneficial, it helps build connections in your brain. You develop skills that can be applied to other problems.