Can eating disorder such as anorexia and compulsive eating cause gastritis?

Possibly. An eating disorder can cause gastritis if there is vomiting associated with it or if a person is not eating enough, compared to the amount of acid produced in the stomach for normal digestion. The symptoms of gastritis, which can include nausea and pain, can also be caused by overeating or hunger from not eating enough. You should discuss this with your doctor and be examined.