It's not funding for student tuitions, rather Harvard research labs bid on research grants just like all universities do. Government sponsored university research since WW2 has been a primary driver of innovation in the US and a key element in the US becoming and maintaining its position as the #1 economy.

It's investment, not charity.