An entire industry exists around optimizing websites for search, improving their performance: search engine optimization (SEO).
Link building is an important part of SEO services. Without links, websites can’t rank in competitive search queries.
Google’s core system, which led to their dominance as a search engine, is PageRank. PageRank is Google’s algorithm that places value on links, and affects websites' ranking within search.