Well, I don't think that for large tech companies that its only about the money it costs to build the office, probably at least equally about the productivity of employees, their creativity and employee satisfaction. (full disclosure, I work at Dropbox)
Sure, but it's clear that privacy and quiet are amongst the most important qualities in an office, yet companies continue to strain to find "creative" new ways of avoiding private offices.
Call me cynical, but it's obvious that per-person cost reduction is the driver of this logic.
Probably depends on the company, I'm sure for some that's the main driver and some of those companies may not even agree that a more open and creative workspace improves collaboration and individual productivity. Each to their own.