1) OpenAI did not change their mission. They are still pursuing AI. They are simply making more money doing it now than they did when they started.
2) Lots of non-profits make a profit. A non-profit is not defined by losing money, it is defined by the nature of what it does with its money, and what parts of its revenue are subject to taxation and what parts are tax-free. For example: the Microsoft contract would have been subject to income tax even if was directly with the OpenAI non-profit entity; moving that to the for-profit subsidiary just simplifies the accounting.
3) I do not think that OpenAI's mission should have ever qualified it for IRC 501(c)(3) status, but the IRS didn't agree and at this point it would be very difficult to challenge the (parent entity)'s non-profit status.