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.
They're generally aren't as accessible.
They're generally aren't as accessible.