If I live 4 hours away from the office, I don't need to show up at all and still get paid for 8 hours?
This is already a de facto advantage for people that are closer. Lack of commute often means lack of stress, which leads to more productivity, which leads to promotion.
Clearly none of it is guaranteed, but that general markov chain works surprisingly well. If the company can't pay enough for you to live close, that is already a drain on the company. Whether they realize it or not.