For sure Elon musk invested in the DOGE coin and probably he just wants profit I mean he is very influential in the cryptocurrency community.
And with just a simple tweet could easily affect the price of a token and we already see that happened in the bitcoin market price, he might just pick a low-value token invested in it and then hype the token in social media that might be the case in DOGE coin.
One thing is for sure he has a reason for it and it's gaining him profit for sure, I will not believe it if he's just doing it for fun but somehow I make money in trading the coin but I have no plan in holding long term.