“Money can’t buy happiness” means “the mindless accumulation of excess wealth ultimately leads to diminishing returns on happiness.”
It does not mean “poor people should learn to be content without basic necessities or financial security.”