Running a program on an Arduino is easy, but have you tried doing it with a Pi? The Raspberry Pi is powerful enough to be a standalone computer and is also good enough to program a microcontroller.
Sometimes, coding on the Arduino IDE is just not enough. Think about all the tools it’s missing: no spell check, no folders, no autocomplete. Sure, you can just program Arduino on an editor and then ...