Raspberry Pi's are essential for a certain class of robots, they're small, light and mobile enough while still being computers, and they have all the pins you might need, most people who don't understand them are usually actually looking for a stationary mini pc or an mcu and are wondering why an RPi isn't those.
Small anecdote on the mobile/robotics part, two years ago I was tasked with a small research sensor/timelapse platform. I reached out for the Pi Zero 2 W, the new Pi camera, and the largest USB battery I could buy. Perhaps I had unrealistic expectations, but I was surprised how much power it draws, even at idle. The napkin math said about 6 days (0.5 W idle, 2 W loaded), in reality it was only 1-2 days.
In comparison, my older laptop idles at around 5 W, even with multiple applications open. Similar experience more recently when looking at setting up a small home lab, the new Pi 5 seems to idle at around 5 W. A friend told me he has an Intel-based mini PC that draws less power. I'm tempted to try re-purposing an old phone, that should in theory do better.
There are a million small embedded systems that are designed for that application and aren’t made to the lowest possible standard that they could muster. And those have RTOS on bare metal. The Pi is a fat and slow computer.
What kind of class you are talking, most of the time, we use MCU for real time stuff and a generic computer for Heavy computing stuff, they can communicate through whatever bus they want (Serial, USB or even wireless like bluetooth). E