Windows 10 saves a list of Wi-Fi networks you connect to along with their passphrases and other settings. If you want to stop your PC from connecting to a network automatically, you’ll need to make Windows “forget” the Wi-Fi network.
Source: How-To Geek