In bitcoin core, your "wallet" is a collection of addresses, and the default behavior when you make a transaction under the amount that belongs to some source address(es) is to send the amount to the specified destination, and the remainder to a new "change" address, thus emptying out the original address(es) and avoiding address reuse. Most addresses on the chain with unspent outputs use the segwit format which just has a hash of the public key for the destination side, so as you and I said the public key doesn't get revealed until the destination tries to send. Not a problem under the majority of behavior where addresses aren't reused.
Taproot and legacy address schemes don't have quite the same protection -- indeed already some really old coins on a legacy address scheme have just moved to a segwit destination: https://www.bitkub.com/en/blog/four-satoshi-era-wallets-move...