I don't think it was created for Firefox, as Rust (in various forms) has been around for over 10 years at this point I think.
Setting that aside, Servo and Firefox both implement the UI side of things from scratch I think. I think from a browser perspective that makes sense: you're already writing a rendering engine, so you may as well also use it for your browser UI.