What you are talking about is sometimes called "basic research":

https://en.wikipedia.org/wiki/Basic_research