A sudden rise in gas is usually caused by a change in dog food, your dog eating something rotten, or a nutritional mishap such as ingesting garbage. If dogs swallow too much air with their meal, they might also generate more gas.