When uploading a sketch to an esp8266, isn't that the same as "flashing firmware"?
Uploading a "sketch" is indeed "flashing firmware".


  why does the esp8266 WiFi still visible in available connections?


I'm not sure what you mean by that.