If someone doesn't expect to live much longer but can still provide a significant amount of value to others, their incentive to do it is that they can decide how the money gets used, i.e. they can give it to their kids or otherwise choose who gets it after they're not around to use it anymore.
Take that away and you take away their incentive to earn money they soon won't be alive to use themselves, which is a huge distortion.
Meanwhile people starting off with money allows them to use it, but that doesn't imply inefficiency. They don't lack the incentive to use it for something productive.
This provides a definition of a market distortions:
https://en.wikipedia.org/wiki/Market_distortion
This may help understand why it is defined this particular way and why it excludes inheritance and other wealth transfers:
https://en.wikipedia.org/wiki/Fundamental_theorems_of_welfar...