Why not just spend it? Why not give it away?
Well, to be fair, we love our children. (Or perhaps we desire immortality and cannot achieve it, so passing on our genes and our ideologies forward, in smaller versions of ourselves, is the closest we can achieve, and since the mini-me versions of ourselves represent us in the abstract, we want those versions to succeed in life, and we call that love.) Whatever, in any case we all want our children to have as much as we can give them. When we're alive we direct the spending of our fortunes in a way that will benefit our families. We know best what is good for them so it is important that we insist on that oversight. Once we're dead, we no longer have the ability to direct the spending, and if we have educated our progeny well, we have a reasonable hope that they will spend the money in a manner in which we would approve.
If I had a billion dollars of course I'd leave it to my child. I might also leave some to the hospital that birthed him, and some to the university that schooled him, and some to the NGO that funded the research that lead to a cure for his disease, but the bulk of it I'd leave to my child. Still, I also think that it is fair that he can be expected to help fund his government's program with his massive inheritance. After all, a stable functioning state with good roads and good schools and equal opportunity for all is in his best interest as well.