Windows automatically connects to Wi-Fi networks you’ve previously connected to. On Windows 10, you can tell Windows not to automatically connect to certain networks. Windows will remember the passphrase and other connection details, but will only connect when you manually initiate a connection.
Source: How-To Geek