Thread builds on the same physical layer as Zigbee, IEEE 802.15.4; the big difference is unlike Zigbee it also incorporates IPv6.
The physical layer is important for low power mesh networks, like the sensors and switches here- and WiFi is way, way more power hungry.
That said, Matter supports WiFi too.