Those probably aren't STEM PhD students, whose tuition (especially at Ivies!) is normally paid for out of research grants or teaching funds.
For a final project, we built a cool autopilot, and demoed it on several vehicles, including a precision dropper airplane, and a sailboat.
The airplane happened to be slightly better than what the USAF admitted to having at the time.
There were 5 of us working on that project, including 1 US citizen.
The citizen got a NASA internship out of it. The rest of us were put on a list and I for one had a very tough time getting a green card later on even with a NIW.
I shudder to think what this maladministration is doing to foreign STEM students now!
Today they are bloated with administration that is nothing but a cost center, meanwhile they eliminate tenured professorships and have classes taught by tenuous adjunct faculty who are paid poverty wages. Universities could easily right the ship by cutting the administration and focusing on teaching and research, but the people who need to make the decision to do that are the ones who would be cut.
I guess it is not strictly necessary, but it brings in a lot more money, which the university is of course very eager to take.
Tuition is one of the few levers left, and while people will object to tuition hikes for in-state students, very few people will do the same for foreign students.
It's devastating when you learn so many of society's problems are due to this.
In my experience, the large influx of foreign students are typically at the masters level. MS classes are typically (not always lol!) more advanced than undergraduate classes. So, you need more qualified instructors, such as your tenured/tenure track faculty to teach them. When you take T/TT faculty out of undergraduate classes and replace them with teaching faculty, you lose a lot. (Let me know if you need what's lost to be spelled out.)
There was a whole thing if you recall in the first Trump admin about treating tuition waivers as income, which at an Ivy is potentially a financially catastrophic thing for a grad student.
Multiple of my children have considered moving abroad to study. It's weird to sit between them and their frustration of the system, and their grandparents (our parents) who seem to think that the crap they're embibing off of fox news, all so that advertisers can target/fleece the older generation, will actually lead to good for their grandchildren.