Where do search engine results come from?

We use search engines to help us answer practically any question we may have. If these search engines are giving us the most relevant results, why do those results vary so much?

The reason behind that inconsistency has a lot to do with the constant evolution of search algorithms.