Considering that this will only apply to failing products, the price they can expect to get for it is negligible, more so considering the buyer is going to be a handful of regular employees rather than a big company. So selling vs killing makes no material difference to their bottom line.
On the other side, there’s a mountain of due diligence they have to do to make sure that the decision is sensible. Is the product tied to the company’s brand at all? Will it reflect badly on them if the new owners decide to take it in some different direction? Or can it be used to compete with the company in the future? Does it have user data? Are they in accordance with the TOS and a thousand data laws when selling it to someone else?
So from the business side the sensible answer is usually to just kill the product.