Not having to move is itself a good that the markets should optimize for. Productivity isn't an end, it is a means. But having stability in your life is an end.
Productivity is an end for some organizations/people. Personal stability is an end for some people.
My main goals at work are being engaged, working with smart people, tackling problems with impacts I care about, and developing deep expertise. I think the markets are fairly well established for skilled labor to dictate what they want from work and choose career paths and companies that suit them. I know SWEs that have worked at the same company for 20+ years. I know SWEs that only accept 6 month work contracts or shorter. I know SWEs that have switched continents several times in their career, and SWEs that have never lived outside of their birthtown (expect for University).