Generally anyone that goes to Harvard has a scholarship. Very very few students there have to pay.
Then how do they make money?
Harvard has a huge, 37.6 Billion dollar endowment. They don’t need to make money
A handful of schools (HYP in particular) have such big endowments that many students go there without paying much and without taking loans.