Why does a sitemap count?

A sitemap is not a ranking factor, but it is an indexing tool: it shows Google the way to your pages. You submit it via Google Search Console. For deep pages, a good internal link structure remains at least as important.