This is beside the point. Mozilla make a browser. They don't make the address resolution code for the underlying operating system. Operating system vendors are of course going to start to support DNS-over-https.
You can disable dns-over-https if you don't want it enabled. Just go to about:config and set network.trr.mode. to 5