I wish I could upvote this more than once. It's too common for developers to assume they're more valuable rather than benefiting from a currently tighter job market.
There's some of that, to be sure, but different employees are different. Everyone spends some amount of time doing collaborative work, and some amount of time doing individual work that requires concentration and focus. Different jobs require a different mix of these two kinds of work. Developers tend to spend most of their time on the individual concentration end of the spectrum, which is why you see comments like the parent's. But it applies just as much to anyone who requires an equivalent amount of individual focused work time each day.
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.
In economics terms, that's the same thing. Tighter job market, more competition for dev talent, devs have more choices, the good ones choose the environment that values them the most.
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.
Not just devs. Employers should have utmost respect for all their employees.