Controlling external power via relay with Nano 33 IoT

why not just use a WiFi controlled mains socket?