For software engineering, anecdotally the companies pushing for 100% in office are the more traditional enterprise organisations, that haven't embraced technology and agile practices.
While remuneration might be similar, there is a lot of red tape and working people willing to put up with bureaucracy are generally not as passionate and therefore try and palm off work or engage in politics.
I agree in principle that 100% in office roles are a red flag and not worth the hassle.