I've seen this example going around because it's such an egregious example of attributing to hard work what was essentially just gifted, but I think "wealth is accumulated through habits" is not wrong. It's really just a statement about compound interest, that if you live frugally and invest you'll end up with tons of money.
The statement is better characterized as something like "wealth is the product of habits and opportunity", where the only measurement we can quantify is a person's wealth, and our society is struggling to reconcile whether unwealthy people simply have poor habits (their fault) or poor opportunities (society's fault).
The statement is better characterized as something like "wealth is the product of habits and opportunity", where the only measurement we can quantify is a person's wealth, and our society is struggling to reconcile whether unwealthy people simply have poor habits (their fault) or poor opportunities (society's fault).