Hence, every month during menstruation, the uterus produces a chemical called prostaglandin which causes contraction of uterus walls in order to get rid of its lining. This results in fluid retention or bloating in the body along with cramping, back pain, weight gain, irritability, and swelling in some parts of the body.