I doubt one can generalize that a remote software team is more productive. I know that when I worked for Prime Research, I got to work from home for the first 9 months and I got a lot more done that way. Of course, then I ended up working in the office and managing a team.
When you're trying to build something complex, it's impossible to get anything done with distractions. I can code up some front end changes or add a new endpoint for an existing controller in spring without a lot of thought, but if I'm trying to design a major new feature, I need quiet and a white board.
I can say in the last 3 months, I've avoided starting several tickets at work until I knew I could get at least an hour to actually focus on them without meetings or other interruptions. It's happened at least 5 times. The farther I go with my career, the harder it is. I remember when I used to get 2-3 hour blocks of time to work on things. Those were the good old days.
https://ask.slashdot.org/story/17/02/18/223215/slashdot-asks-are-remote-software-teams-more-productive