Because it’s easier to control them outside of your home WiFi, which is what customers expect nowadays.
Also because Google Assistant and Alexa require cloud to cloud communication. Which customers also want.
And cheap WiFi devices such as the esp8266 are very optimized for a single tcp socket.