Body
Wi-Fi-enabled devices will only connect to a Wi-Fi network if they have been set up to use it before. A device will keep using that network until the user removes the saved connection, sometimes called "forgetting" the network.
If a device has been setup to connect to two or more Wi-Fi networks available in the same location, it may randomly switch between them, which can cause intermittent connection problems.
Here are third party guides for explaining how to remove a Wi-Fi network from a device: