Need help setting up WiFi (esp8266) on my Uno

A NodeMCU or WeMos D1 is $2 more on ebay than a bare ESP-01, and could replace the Uno and ESP.
Don't understand why people still buy the ESP-01.
Leo..