RTOS have some advantages over linux/windows etc. Less hardware requirements (memory), deterministic deadline (important for critical sensor input, e.g. a computer that triggers airbags in cars would never use (standard) linux), less power consumption. I think the only relevant advantage when it comes to smart phones today is power consumption.