That happens because the signal strength is different between the different options, not to mention some are password restricted. The phone is looking for the best available option. And if you have previously connected, that will get priority in the listing.
It is not a good idea to use a public Wifi connection, unless you are running a good VPN and you are secure.