I may be wrong but I remember it almost exactly the opposite i.e. that Musk was clearly flailing with Twitter and Meta saw that as an opportunity to move into Twitter's market, which they would have struggled to do with competent management at Twitter.