Superheroes are the selfless champions of the weak and downtrodden. One of genre's popular tropes is that the heroes are in the same financial straits as those they protect. However, there are many Marvel and DC heroes who are rather wealthy. They use that money both to fund their acts of heroism and to help the poor in more tangible ways.
Source:https://www.cbr.com/richest-superheroes-ranked/