Symptom Based Psychology for Functional Gastrointestinal Disorders

How do we understand the many studies that show an increase in negative moods like anxiety or depression in those suffering from functional gastrointestinal (GI) and pain conditions?