I believe it’s simpler. It is a way to cut his losses from the forced buy of twitter.
Also, xAI doesn’t seem to have a better use for the money right now than to put it into Musks (+ other owners) private pockets - which is the most bearish news I have ever read about AI.