Photo Credit bchiku/iStock/Getty Images. Digestive complaints such as bloating and painful gas may be the result of medical conditions, as well as a poor diet and inactive lifestyle. Although everybody reacts differently to different foods, sugar is a frequent trigger for stomach bloat and flatulence.