Threads for example is introducing ads and is likely being used to train their Llama models.
That is only one of many ways that Meta can generate billions again from somewhere else.
Now think of Meta and their suite of products which already generate $160B+/yr from advertising. Every extra minute they can get a user to spend on Facebook or Instagram, this number goes up. Think about how much money Meta will make if the next viral AI moment happens in their products.
TL;DR: AI -> engagement -> ads -> revenue.