The cost of classrooms and professors' salaries is a fraction of the cost of running one of these huge universities these days. They do it because they can.
Oh, I was giving just one tiny example. I am fully aware of the bloated administrations and faculty costs. I worked many years in a land-grant university city. Eye opening, indeed.