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.