I would argue that allocating the capital wisely and creating jobs is more valuable than giving it away to charity.
Being a billionaire opens up the floodgates to get people to listen to you and to have a meaningful impact on the world.
I'd lose respect if Jeff Bezos, Bill Gates decided to stop investing their money in game changing ideas and just donated it.