Why does the networking.resolvconf option not use networking.nameservers?

I’m currently trying to use services.unbound.resolveLocalQueries, but it sets networking.resolvconf.useLocalResolver to true and the source code for networking.resolvconf doesn’t even make any mention of networking.nameservers. Can anyone shed light on this (e.g., security practices and whatnot)? Thanks!