If you're imagining a student driving to class, you're imagining a very different kind of environment.
In the schools where these kinds of demands are made, the university provides your housing, food, utilities, medical care, the centers of your social life (both in terms of facilities and student organizations), local police department, credit union, etc. Even if you live off campus, the entire neighborhood is an (unofficial) extension of the university community. Even if you're at a private business, the university probably owns the building and leases to that business. Private apartment building, your neighbors are all students and faculty.
This typically happens in a small, walkable enclave where it would be very strange for a student to have a car or commute in from outside the enclave. The university owns every part of a student's life in this case, and it's reasonable to think it has some responsibility to keep its community healthy, within reasonable limits.
Your criticism seems more applicable to a commuter/community college, not a residential one.
Without a totally Orwellian system to deal with this, how could a university respond in this case? I can sort of see where you're coming from, but there's no clear-cut solution that would be in the university's power. It might be their job to protect students from harassment on Facebook (and I would say even that is slightly extreme), but I cannot fathom how a university could even begin to approach monitoring Yik Yak. Would all students be forced to hand in their cell phones and decrypt all their data? Or should we just set up surveillance cameras in their rooms so we can see when they use their phones? Yes, there are reasons for universities to protect their students, but there is clearly a line to be drawn in this specific case.
In the schools where these kinds of demands are made, the university provides your housing, food, utilities, medical care, the centers of your social life (both in terms of facilities and student organizations), local police department, credit union, etc. Even if you live off campus, the entire neighborhood is an (unofficial) extension of the university community. Even if you're at a private business, the university probably owns the building and leases to that business. Private apartment building, your neighbors are all students and faculty.
This typically happens in a small, walkable enclave where it would be very strange for a student to have a car or commute in from outside the enclave. The university owns every part of a student's life in this case, and it's reasonable to think it has some responsibility to keep its community healthy, within reasonable limits.
Your criticism seems more applicable to a commuter/community college, not a residential one.