Doing research for a company has the end goal of benefitting that companies' shareholders. Doing research for a publicly funded institution has the end goal of benefitting society.
Look at the decoding of the human genome. No company has a patent on that because public institutions did it first.