We don’t optimize just for search engines.We optimize for people.
Google and other search engines have their algorithms with which they evaluate relevance of a website even before displaying it to you. There are a number of factors that decide whether your webpage will be shown among the results. Its technical qualities (fastness, content structure, https protocol a many others) are one of them.
Authority and trust of your website demonstrated by backlinks and content related to the topics you want to be displayed under create a far more essential part of the SEO. Search engines give priority to the best content they are able to offer. That is why it is important to provide content people are interested in, search engines will notice that.