From a design perspective:
- Glass walls are nice. This office was a group space surrounded by smaller rooms (which had the windows). The offices were glass on the interior wall (facing the group space), which allowed light in, but opaque on the walls between offices, allowing for privacy.
- Variety was important. Iirc, we had like 4-6 offices that would fit 2 people at desks, 3 that would fit 4 or 5 people around a table, and 1 that fit about 12 around a small conference table. This was for a 25-person company, and seemed to provide about the right amount of space. - We ended up soundproofing a few rooms because people would use them for calls or loud music playing and it'd disturb the neighboring offices.
Not just devs. Employers should have utmost respect for all their employees.
The logical outcome of this is that your office layout should be different for employee groups doing different types of work, but since having an office is seen as a perk of upper management, giving offices to some groups and open plan areas to other groups is seen as favoritism and elitism rather than simply providing the best environment for everyone's job, and I think that's a big reason why it doesn't often happen.
Only in the most simplistic understanding – anyone serious will factor in limited information and human irrationality rather than assuming that observed market behaviour represents Econ 101 game-theoretical optimal decisions.
If you work at a large company, you might be well paid because you're working on the CEO's pet iOS project and there's a developer shortage. The market is working to give you higher pay but there's no relation to any sort of actual value. Most places don't even make a serious effort to quantify value or cost in a remotely scientific manner.