Research comes in essentially two varieties, pure and applied. Lots of pure research was funded by the DOD to make better weapons. Corporations tend to fund applied research.