Regardless of its purpose, it is extremely unfair, at least from a purely pragmatic perspective. The money was earned, and the government has no right to take it away just because you die.
If you decided to give it to your children or whatever, it'll get taxed just like if you tried to give them that much money before you died. If in your will you decide to give it to a non-profit charity instead, it's not taxed.
You aren't taxed for dying. The person who died isn't taxed at all. It's the people that are still alive that are now receiving money that are taxed.
How is any of this unfair? Your children didn't do anything to earn that money. Why should they get it at all?
Your children still did not earn income, you did. And you got a tax break for that as well in the form of dependents. You are asking to double-dip here, which is unfair.