Porting code from one language to another is much faster than writing it from scratch. I'm currently porting my own code from Python to C++ and it's a snap.
Mozilla could've chosen to port the C++ code to Rust, but they didn't because they had other "frivolous" priorities.