These days, there are a ton of factors Google and other search engines consider when ranking your website.
From the more technical elements (canonicalization, HTML elements, HTTP status codes, etc.) to content best practices (backlinks, videos, long-form content, etc.), search engines are more advanced than ever—meaning they’re also more picky than ever.
One factor that is becoming increasingly important is user friendliness, also known as user experience or UX. Basically, Google wants visitors to your site to have a good experience. Therefore, if you have a user friendly website, Google will like you more and rank you higher.