if you surround yourself with people who are only motivated by money, you will believe that everyone is only motivated by money. if you surround yourself with people who are motivated by a creative urge to build something they can be proud of, you may start to believe that this is everyone's motivation.
it is often useful to think of people as only being motivated by one thing, to see clearly how application of that thing might change their behaviour. but if you believe that is the only thing that motivates them, you will have a very simplistic (and eventually incorrect) model of how they are motivated.
Many people aren't motivated by money so much as wanting to spend as much time they can with their family, where they find their creative energies most rewarding.
Making the most money per hour merely allows me to spend more time with my family rather than working more for less and giving my creative energies to greater society or an employer instead of directly to my wife and children.
Maybe 15 years ago I would've agreed because there was genuine innovation in tech where you could actually be passionate and proud of building it. "I want to work here because I want this product to exist" could've been a legitimate thing to say back in the day.
Nowadays with every market being saturated and tech being a race to the bottom quality-wise, what's there to be passionate about and/or proud of? Do you think people are proud of building yet another OpenAI wrapper or advertising surface? If they actually are proud of those I would feel pretty sad for them.
Also, the majority of landlords don't take payment in "passion" or "pride" and rents have skyrocketed since the glory days of tech.