Something else to consider is this, when we spend our values on being good, we often find those values returned to us in many surprising ways. The give to receive phenomenon. It is actually a thing that operates within the human dynamic. Surely it defies logic in the cold hard sense of it but not in the emotional world where we humans reside. If you take the time to consider what it takes to become economically wealthy you will find that often there is someone who is being harmed by your gain. Not that all harms are necessarily bad when gambles for fortunes are made but way too many harms are personal and don't involve the harmed in ways that they can defend against.
Something else to consider is this. When doing good is the goal, often economic value follows. Many work hard for those who have a keen sense of doing good. Those around good people are more likely happier and more readily invest their energy and time into helping good people succeed. I know I do! Everything has a price and what part of our soul are we willing to sell in order to harm for wealth? What part of our humanity are we willing to let slip away in order to have more than we deserve or need? Life is a simple proposition for all of us. Find your happiness and spread it around for others to find their happiness. What greater wealth is there than that?