As someone said earlier, programs sometimes are searching for people who are from the area and would like to stay in the area after their residency is complete.
However, in my residency class, only 5 of us (out of 13) are from the Pittsburgh area. I think there's more in the class below us.
So I'm sure it has some influence on resident selection, but not that much.