Food allergies can cause skin infections, called atopy, as well. The skin gets inflamed and secretes a foul-smelling oil when a dog eats something they're allergic to. Disorders of the GI tract, such as infections and diseases, can cause excess gas production in dogs.