Are you familiar with Microsoft Research? It's literally a section of the company that is given basically free reign to do "stuff" in hopes that maybe, possibly, it might someday see the light of day or be impactful.
Here's an example of some of their work: https://duckduckgo.com/?q=Microsoft+Research+four+color+theo...
Literally a random math problem, basically nothing to do with Microsoft on the surface ... except that the scientist working on it happened to prove the theorum using a very, very robust algorithm and then wrote a proof program on top of it to prove the program was correct. The underlying parts of that proof program eventually went on to become the thing that validates graphics drivers on Windows ... 7 and beyond? My memory is fuzzy about "how it ended up being useful at Microsoft" part.
But yeah, MSR does random stuff.