While this behavior is instinctive, it can be redirected if it makes you uncomfortable. Training techniques such as giving treats and using basic commands like sit or stay can teach your dog alternative behaviors.
Redirecting should be done gently and consistently. Reward your dog when they follow commands instead of sniffing, reinforcing positive actions while respecting their natural instincts.