Certain teams at Apple get free dinners to boost morale when working late. This included a pretty nice catered meal once a week in my department. No doubt, this is common at industry leaders.
There was nothing stopping us from eating and going home. It's not as though someone was keeping watch over us and demanding work for food. I always felt respected and appreciated.