How does performance optimization impact SEO?

Search engines prioritize fast websites, meaning a well-optimized site ranks higher and attracts more traffic.