Eating is a common cause of bloating because when the body digests food, it produces gas. People also swallow air when eating or drinking, which then enters the gastrointestinal tract. Flatulence and burping usually help to relieve buildups of gas and air in the gut.