But also, quality and productivity are not totally separate, let's not be coy. If you can't collaborate effectively then both productivity and quality can take hits.
If the product suffers, it's not because they're working for home. Microsoft, Adobe, Apple, or the famous old examples everybody loved to have Avid and Quark, have made no end of crap releases, or crapped on their priorly good products, while strictly working from an office.
And that's with product oriented companies - corporate and government software is, of course, much much worse.
Still, why optimize for product quality either? It's a bottomless pit. We should optimize for a decent product (that would already be an improvement), and work-life balance. Work is 1/3+ of daily life, and people's time is not something people should be forced to sacrifice (by piling up forced relocation or commuting time, open plan or cublicle farm environments, and lack of day contact with kids, spouses, ability to drop the kids to school or handle some chore over the week, and so on).
Perhaps having a goal of "optimizing productivity" is the problem.
If employeers were allowed to drive this to its ultimate conclusion they would adopt with forced servitude as the maximum productivity case (and historically and even now in many places had adopted).