The closest grocery is Target in Central square, which is extremely limited or maybe Trader Joe's, which also isn't the same. The Star Market that was right behind campus closed a couple years ago. It's not so easy, in my opinion.
That Target barely has any groceries, it's a small general department store. But yeah there is Trader Joe's, H-Mart, and Whole Foods. Market Basket is a bit further but more like a real grocery.
Yeah, the point is there's a wealth of options for food within a an easy hour round trip of walking (not just specifically the one Target). And a lot more if you have access to a bike. People are not going to starve to death when the alternative is walking 15 minutes to a grocery store. Let's be real. Downtown Cambridge is NOT some food desert like what exists in other parts of the US, where you could walk for hours and not reach the nearest grocery store (this is particularly prevalent in rural areas).
Amazon Fresh will deliver groceries from Whole Foods within 2 hours, there's Uber-eats, DoorDash, Grubhub etc. There are a ton of inexpensive bars and restaurants all around Kendall and Central Squares (and yes, certainly some expensive ones!).