Here is a reference but not much information about what happened nor why: https://analyticsindiamag.com/musk-buys-ai-com-from-openai/
What I believe is far more likely is that Musk bought or owned ai.com and played a smart move (for once) by having it direct to ChatGPT, only to switch it out to X's site now.