...
Google displays web pages in their search results based on the authority and relevance of the page to enhance the user experience.
How Does Google Measure Authority and Relevance?
Google determines the relevance of your page by analyzing its content based on several factors, including where and how often you use certain words in your content. Google measures authority by the number of links pointing to that page and how trustworthy those links are.
...