A sitemap is a list of pages of all your website content in an XML format. As a result, search engines like Google are able to find and index the content on the site pages more easily. It is helpful for both users and bots or crawlers to locate content within a website by using the sitemap. It is a document that displays your website’s structure and links between different web pages.
We know how Google gets its data, Google bots crawl around the web in search of new links and bots travel through the web using links.
Search engine crawler bots can find your pages in two ways:
By visiting all the links found on a page and repeating this for every visited page
By visiting the pages listed in the sitemap