Most likely your friend has some type of security on his network. He probably requires a password even for the guest users. You'd need to ask him for the password. If you tap on the network showing the exclamation mark, then you'll get a pop-up asking for the password. Once you enter it, the exclamation mark will disappear.