Yes, comparing Raspberry and Arduino is nonsense.
Arduino is MCU board for hardware controlling, while Raspberry is SBC.
While Arduino is designed for ultra low power and wide IO options, Raspberry IO options are quite limited on low level point. Power requirements are insane compared to MCUs. Not even mention that MCU can run within milisecons after powerup compared to dozens of seconds for Linux on RPI. SBCs also quite hate unexpected power outages, this is almost never a problem on MCU...
Basic thing is that RPI (or other SBC) is only good option if application requires some advanced internet protocols, security or can truly benefit from full OS. In other cases MCU is much cheaper, cleaner solution that can run on two AA batteries for weeks...
But yes, I understand that many people do not differentiate this because I still see a lot of people that are blinking LEDs from Raspberry... Very sad.