Maybe also because things like DPDK (or similar) made it possible for Linix to play at that scale?
The routers I am talking cannot do packet processing on the CPU. We are talking about 3.2 Tbps per linecard with 10 linecards per router.
All data plane activity is done on custom in-house ASICs called network processors (NPs). The CPU only handles control plane traffic and general administration.
XR itself provides abstractions on top of QNX and Linux, so devs working on platform independent code are not really affected.