Why do we publish guest posts in SEO?

Hi guys! Could you explain why we should make guest posts in SEO? Please, respond in my message. Thank you