I cannot find the exact study that concluded this but here's a recent one making a similar case. I know this isn't the one I've recalled since I read it back in high school. This one speaks to the benefits to the employee and employer.
https://www.businessnewsdaily.com/8638-employees-eat-togethe...
Relatedly the most successful engineers in my social network are those who have worked remote most or all of their careers. It’s not a coincidence that they have more fulfilling social lives and earn more money, when they are able to spend more time with their spouse/kids, learn skills on their own, and switch to higher paying jobs that are not location-bound.
Yes, eating together is great for forming social bonds. A great many of us senior engineers (in my opinion the actual vast silent majority) are able to form social bonds that improve productivity, without needing to go to an office daycare to make fake forced friends.