pinMode INPUT_PULLUP turns on internal pull-up of the io pin in the MCU. but the esp8266 boot config pins require to set the boot config with resistor external to esp8266 chip. so the esp8266 dev boards like the Wemos D1 have on the PCB a pull-up circuit on those pins of the esp8266.
1 Like