In most cases, WiFi is not its own Internet connection, it shares an Internet connection with the entire network. Theoretically, just having devices connected to WiFi does not slow the speed. But the more devices connected and doing something, the bandwidth has to be shared, thus affecting the speed.