How do social networks work?

Social media is business and it works with the ultimate goal of maximizing your profit. They want you to stay connected to their system for as long as possible, in order to offer more advertising, so they want to retain you.