Seasonal or food allergies can cause inflammation of the skin which leads to excessive secretion of oil from certain glands in the skin, producing a musty smell.
Poor diet can contribute to this condition and can also be the cause of other problems including yeast infections, which also give off a foul odor.