Elon Musk painted himself as an innovator trying to help humanity flourish when he took the stand in the trial over his lawsuit against ChatGPT-maker OpenAI.