After the non-profit sells its assets, it would either donate the proceeds in a way that would be aligned with the original mission, or continue to exist as a bag of cash, basically.
It seems incredibly convenient that a non-profit's leaders can say "I want equity in a for-profit company, so we will sell our assets to investors (who will hire me) and pass off the proceeds to some other non-profit org run by some other schmuck. This is in the public interest."