Money wasting?
If the two developer teams were made up of volunteers, then this duplicate work could be excused as people scratching their personal itch.
But I suspect the two teams are employed by the Mozilla foundation to work on Firefox. Which means one of them is wasting their time & Mozilla's money, so someone at the top is asleep at the wheel.