The widow and child get a pension, just like all other widows of non-authors. Widows and children of other people don't get the right to receive wage from work perpetually so it's insane that we're supposed to pay wages to authors families for decades and decades.
What you are saying is that all of the benefit goes to the publishing company, not the public. Not really.
The reality of normal people is that a big part of the reason they work is in order to provide for the people they love. This is why copyright exists in the first place—to protect the motivation to produce creative work, knowing that the benefit won’t be stolen from you. Knowing that if you die, the benefit to your children is immediately forfeit actually reduces the willingness for people who aren’t misanthropes to take on that risk.