One of the most important determiners of whether you're happy and satisfied in your job is your commute time. Happiness, job satisfaction and longevity at your job decrease significantly as your commute time extends more than 20 minutes.
There are many benefits to working from home, as well as working in an office environment, but my point is that commutes will still exist for many software engineers for a long time.
Capital is controled by a small number of relatively old people. They give that money to companies as an investment, and tell CEOs "make sure you have managers keeping eyes on your employees in the office- no remote work."
So we are at the mercy of the interpretation of optimal business practices from "investorsl and board members"