Theme folders are the strongest signal
Every enqueued stylesheet and script on a default WordPress install carries the theme folder in its URL, for example /wp-content/themes/twentytwentyfive/style.css. That path is unambiguous: it names the theme and, once the file is downloaded, its exact version.
When a CDN rewrites those URLs, the tool falls back to fetching the page's own stylesheets, because minified bundles often keep a reference to the original folder or the theme's header comment.