WordPress leaves recognisable traces in the HTML it produces: asset files under /wp-content/ and /wp-includes/, a REST API link to /wp-json/, and often a generator meta tag with the version. The tool matches only those WordPress-specific signs, so a hit is reliable.
For the full stack of a site, including analytics, frameworks and hosting clues, use the Technology Detector.