Website optimization is an important factor for Google ranking. If your website not optimized for SEO the search engine crawler enables to crawl your website. This leads to reducing your ranking on google.
Do you know your website optimization score? Check your website score here: http://bit.ly/39tR1Q4
If you are website score is less than 80% you need to optimize your website for better performance.
If you have any queries mention in comments I will be glad to answer