What a ridiculous statement, of course some people leave because money. They didn't get as big of a stock refresher as they wanted, they looked at levels.fyi, they asked a colleague how much they make, etc.
Perhaps some people start looking because they're unhappy and then learn they're underpaid but I personally know many people that started looking because of money—not the other way around.