WordPress loads a theme's styles and scripts from a folder named after the theme, so the folder name appears in the page's HTML. The tool reads only that public HTML, the same page any browser downloads.
To check whether a site is WordPress without looking for the theme, use the WordPress Detector. For analytics, frameworks and hosting clues as well, use the Technology Detector.