Have you started the browser while not having any wifi connection? If yes, then the browser auto connects to wifi (if the device is not in flight-mode), and when you close the browser, it disconnects again. If you connect to wifi before starting the browser, it will not disconnect. IMHO this is a quite reasonable behavior and saves me some clicks when I want to surf for a few minutes and then continue to use the device offline.