RTOSs perform a small number of repeated tasks with low latency and guaranteed response, which is why they are preferable for critical embedded systems. For example, say you have a part of manufacturing equipment that has to stop each time there’s an issue on the production line to keep the workers safe. Because of the deterministic and predictable nature of RTOS, it will do so every time.