Wrong way to power microcontrolers (i2c project 3,3V & 5V)

What is the purpose of the ESP? If it's just to connect the Arduino to WiFi, why not just use a board that already has WiFi, like the Wemos D1 Mini or NodeMCU?