They are both colleges (educational institutions) and research institutions. For decades or more, research in the USA has been a central function of government (although it also happens in a few entirely privately funded organizations). That's what (most) of the public money is for, and there is no sane reason to stop that.