There is a lot in here but turning a non-profit into a for-profit definitely should be challenged. Otherwise why wouldn't everyone start as a non-profit, develop your IP, and then switch to 'for-profit' mode once you got something that works? You don't pay income taxes and your investors get write offs.
They didn't "turn it into" a for-profit though, they created a separate for-profit arm. This one is unusually successful but that's not an unusual thing for even "regular" charities to do in order to engage in some activities that they wouldn't normally be able to.
It's not unusual for nonprofits to have spinoffs, but it is unusual for the nonprofit to be so consumed by its for-profit spinoffs.