How are system configuration flash or eeprom chips programmed?
I can't speak for the ESP8266, but in most cases, the blank chips are sent to a programming house that has equipment to mass-program them, either in a row of sockets or, in the case of large production runs, with an automated system that automatically runs each chip through the programmer.

In many cases, the board assembly house contracts with the programming house to provide the programmed chips.