Sometimes they simply don't have a viable path to staying independent and profitable. Discord has tried a few things to earn more money (premium subscriptions, a game store) that didn't work out. I don't think they have a lot of options other than selling.