Consider a great engineer, one that can innovate, be a leader, inspire others. If he one day realises that he is not the best he can be while he spends 2 hours commuting every day, and therefore moves to another company where he does not have face obstacle and can focus more of his energy at the problem at hand, does it make him less "dedicated"? To whom?
I think you are confusing dedication with something else.
In short a dedicated employee is the one that is willing to sacrifice a lot for the success of the company.
And assuming employees being equal in capabilities I regard the ones unwilling to take this extra burden as less dedicated than the ones that accept it.
That is the definition of dedication actively peddled in corporate culture. But of course, the best professionals are the ones who are dedicated to their profession, not to one company - especially one that throws hurdles in the way of their productivity and well being. Endorsing that narrative doesn't achieve anything other than enriching some insanely rich people. It's just exploitative.