An XML sitemap is a file listing all the URLs of a website, designed to help search engines like Google discover and index its content more efficiently.
If you ask me I think it will not be wrong to say it is a very important file from SEO's point of view.
It provides crawlers with direct access to URLs and includes valuable metadata, such as when a page was last updated.