While bloating can be caused by eating too much or too quickly, or by certain foods that produce gas, there are other factors at play.