If everyone (with necessary skills) can do your job from home, the pool of competition for your job increases massively. If they can only hire people in your city, pay rates are liable to be much higher.
Supply and demand at work.
Supply and demand at work.