Why it happens
Domain resolution and traffic forwarding are two separate channels. The client may take over your traffic while the resolver addresses configured in the system stay the same; a browser's built-in secure DNS bypasses system settings and queries its own resolver directly; and resolver settings at the router level are invisible to the client, so lookups can still go out locally.