The causes are varied - indigestion, excess wind, not chewing food completely and intolerance to some foods.
Water retention can cause bloating and if it is cyclical then there are things you can do to help.