This was literally a selling point at Google:
> Larry Page and Sergey Brin ... had designed their company's famously open culture to facilitate free thinking. Employees were “obligated to dissent” if they saw something they disagreed with, and they were encouraged to “bring their whole selves” to work rather than check their politics and personal lives at the door.[1]
Lots of companies have figured out that "having a worthwhile mission", in addition to just a paycheck, is one way to distinguish themselves from other potential employers.
[1] https://www.wired.com/story/inside-google-three-years-misery...