if you have an iPhone, iPad or any other logged in device with the wifi password it will auto grab it from that device without you doing anything.
The other commenter is correct - the last (few?) Wi-Fi passwords are stored in NVRAM so that the recovery environment can connect to the network more conveniently.