While Musk claims the AI giant abandoned its founding principles, email messages from the tech tycoon suggest he was also focused on profits.