One of the main goals of social media sites is to increase the time users are spending on their social media sites. The more time users spend, the more money the site can get from ads, and also the more power and influence those social media sites have over those users. So social media sites use the data they collect to try and figure out what keeps people using their site, and what can they do to convince those users they need to open it again later.
The longer users spend on a platform, the more opportunities there are for advertisers to display their ads and reach a larger audience. This translates into higher ad revenue for the social media site.