Having a lot of money or earning a lot of money isn't wrong. Certainly, being rich is not a sin and God does not despise wealth but it is what you do with the money that makes having money a sin. In fact, it is written in the Bible to "Honor the Lord with your wealth; the firstfruits of all your crops and your barns will be filled to overflowing and your vats will brim over with new wine." Proverbs 3:9-10 If having wealth is wrong then God would not bestow a promise of prosperity in these verses.
Having a moral anchor and the realization that money can't make you truly happy helps one's feet grounded. For you may be able to buy whatever your heart desires but the happiness it provides is only temporary and you will seek to buy other objects to fill an emptiness within because man, by his very nature, always seeks something above him - something that would make him truly happy and content. Theologically speaking, it is God who put that void in order for man to seek Him because only an infinite God can more than ably fill and satisfy a finite creature. Thus Saint Augustine wrote in his Confessions "Our hearts are restless until it finds its rest in you, O God."