Because on most distros, using unbound or BIND9 as local DNS server, they bind to all interfaces, publicly.
Which is the reason why DNS amplification DDoS even is possible.
I’ve seen it often enough happen, and basically every person who’s set up their own servers has made the mistake of leaving the defaults.