The last sentence is key. A quality dev can do all the work required to make par with 5-10 hours of work a week. They can be happy if the salary is good enough and they approach it from a "don't care, getting paid" mindset. However, if they're forced to be in an office instead of remote, where they can do as they please with an extra 25-30 hours a week vs. a standard job, they will be miserable.
I think I understand what you're trying to say but as I read what you wrote it's a bit confusing. Please correct me if I got it wrong.
What I think you're saying is, if a developer is forced to be in an office/at a desk when/where no "real work" can be accomplished (that's to management gates/bottlenecks) then they will be miserable. Is that correct?