Automatic Wi-Fi connection after formatting: how possible?
I think you have provided your Apple ID details (including the password) prior to the internet recovery. Thus, this is happening due to iCloud Keychain. (Which stores your passwords in the cloud and use them whenever it needs). If that is not the case and if you sure that the connected wifi network has WPA2, it is suspicious.