Depends. In my case, it's because I'm not logged in. My work place has an open wifi hotspot that has a local web logon screen. You won't get internet connection despite being connected to the wifi unless you open the intranet website and login. That removes the exclamation point on the wifi icon in my case.
Basically, it means that there's still an action you need to do before you are fully connected.