If you even have to ask this, you haven't interacted with many normal people working from home. Homes are full of distractions, especially if you have small kids. I bet your normal young dev with small child at home (even with their spouse taking care of the kid) does half as much work as they could have had they been at the office.
Yes. yes. offices have brain drain in form of small talk and whatever, but at least you in a different environment and detached from your home. And yes there are some people who have the luxury of separate home office and if you dont have kids then that could easily be better for you. However we aren't maximizing only you but your team, your department, and ideally whole company.