Sometimes the stomach produces too much acid, causing pain. Indigestion tablets (a medicine) neutralise the acid, producing carbon dioxide gas. The gas is released when you belch.