But we all give away wealth when we die. To someone or another.
The pledge is not necessarily one of generosity other than looking past one's family. Which is something, but less impressive along the generosity dimension than giving away more earlier (while that money has a very real opportunity cost to you).
That said, if I had billions of dollars, I'd be investing in my own research and not giving it away. But that's just me.