It’s pretty simple, in my opinion.
They want both the specific job and the ability to work from home.
There is a zero sum element to it.
The best solution is for workplaces to be up front and consistent in their policies and let people select in or out.
It’s pretty simple, in my opinion.