White-hat SEO earns rankings by making a site genuinely better for users and easier for search engines to understand — it follows the search engines' own guidelines and compounds over time, rather than exploiting loopholes that get penalized in the next update.