Search engines take many factors into consideration when deciding where to rank your site. Optimising these 'factors' for the benefit of your ranking in search results is known as SEO (search engine optimisation)
Here's a screengrab of a site I SEO'd, have a look at the difference it can make (The site relaunch date was early December).