The "perks" exist to squeeze more out of each worker, nothing more. $10 for a 15 minute haircut onsite, vs $75 for an hour of a 150k/year person's time to run out for a haircut.
It doesn't have to be a zero sum game. In this case, the company gets more work out of you, and you get a free haircut.
Not to mention that "more work" isn't even a zero sum game. You get more experience, sense of accomplishment, etc.
Yeah, I'm surprised nobody ever does the math. Walking out of work to go to a restaurant takes at minimum 1.5 hours by the time you gather a lunch group, wait for at least one person who has "just two minutes" to finish some task, figure out where we're going to eat (in any decent sized group there's a vegetarian, or someone who doesn't like Korean, or someone who just ate a burrito last night and doesn't want mexican, etc), walk to the garage, figure out who's driving, move child seats, drive to the restaurant, park, order, eat, figure out who owes what and split the bill, pay, drive back. Whereas eating in the office takes ~40 minutes and is probably a bargain for employers: it not only makes me grateful, but they get 45-60 more minutes of work out of me.
Yet another bull*t article. Haircut costs perhaps $10, they give free food in homeless shelter... Luxury perk is paid accommodation, car (with chauffeur), huge private office or location independence.