Or they believe (possibly correctly) that you don't have as strong a negotiating position because there are fewer options for you based on location.
When looking at an individual employee's decisions, these policies don't seem to help the company. I think they only really make sense when thinking about populations, where people are less mobile and more fungible.