SEO works when a webmaster creates content utilizing words, phrases, and contextual relevance to answer a query. Once a search engine spider crawls and categorizes a page, the page has an opportunity to be found by users for the search terms it has targeted (and possibly others).