If the network isn’t secured, you don’t need a password for it and can just connect to it. If you have the password to one of the available networks, you can connect to it. WiFi networks that you’re in range of show up automatically in the list of available networks.