A sitemap.xml file provides the structure of a website and makes it easier for search engines to fetch and index it. The benefit of this is that fewer server resources are needed as opposed to going through each webpage and following links.