This effect is known as proximity bias. This happens as a result of the misconception that office workers are more productive than those who work remotely.
In contrast to those who work remotely, those who are physically closer to company executives benefit from outsized influence & have high promotion chances.