Return to office mandates and a decline in remote work have companies looking more closely at the quality of life in the place where they establish offices.