Allergies, hormonal imbalances, fungus, parasites and localized inflammation can lead to an overgrowth of yeast or bacteria on the skin and cause an unpleasant smell. Your dog's discomfort will lead to excessive scratching and licking which can cause a secondary bacterial infection.