We were required to have a meal plan when I lived in a dorm.
With the facilities that we had, no other reasonable alternative existed: I lived in a dorm that held 480 students. We had ONE small kitchen (think 10x 5) on the first floor and ONE small kitchen in the basement. Even if you ignore the obvious problem of too many people and too little kitchen, I can't imagine anyone wanting to cart food up and down the elevator to cook it. We were allowed to have microwaves, but things that could heat oil/cause fires (i.e., electric skillets, etc.) weren't allowed -- fires in a high rise building . . . well, you can imagine. And then, if students were cooking in their rooms, the only place to clean up was the small bathroom sinks. I didn't know anyone with allergies, but I can only imagine that sharing a kitchen space would've been very dangerous for them. No way that would've worked -- not with the facilities we had.
We were required to have a meal plan. We had several large all-you-can-eat dining halls in various parts of the campus, and we had several little grill-type places in the Student Union, the Bookstore, and in a couple other heavy-traffic places.
At that time, I had the idea that I could've fed myself more cheaply than the meal plan. Then I moved into an apartment as a senior, and I found out that it cost MORE for me to cook, and it took up my time! Oops, I wasn't as smart as I thought.