Cubicle, you say? LUXURY! We had to code 12 of us to a desk inside a cardboard box in the middle of the road. At the end of every day, Pointed-Haired Boss would replace us with A.I. and fire us, only to re-hire us the next day at half the salary.
The open workroom was a relatively short fad pioneered by Frank Lloyd Wright. If you look at office buildings before that, they're much more similar to houses and apartments. Lots of rooms connected by hallways, staircases, and atriums. You can imagine the difficulty and expense of lighting a large open space without electricity.