Saving money, even from a salary job, gives you the breathing room you need to take economic opportunities. For example, if you save a year of expenses you can start a software business without external capital or connections.
Most of the paths from middle-class to wealth involve avoiding frivolous spending.