Wet dog smell can be caused by natural oils and microorganisms like bacteria and yeasts that emit a foul smell when combined with water at bath time, or after playing in a lake, pond, or in the rain.
Blow dry your dog, which helps remove the bacteria right down the dog's hair shaft and down to their skin.