"Money can't buy happiness" is a great mantra for rejecting the capitalist enshirining of wealth as a virtue. It's important to see happiness as something more complex than income.
The issue is that when interpreted as "poverty is no excuse for unhappiness", it loses all valid meaning.