Because Firefox is not using your computers resolver but just the CloudFlare DNS servers via DoH directly.Look here: https://support.mozilla.org/en-US/kb/firefox-dns-over-httpsKH