Musk’s job as CEO is to work in the best interests of the company. Using the company's resources to buy/build a completely unrelated entity for his personal gain is most definitely not ok.
If he wanted to do what you’re saying (enrich Tesla with those features), Tesla should be buying Twitter. The scenario you're presenting, by the way, is exactly how Facebook/Meta acquired Instagram. However Facebook acquired Instagram, not Zuckerberg personally.