I was given pump inhibitor omperazole for 6mth high dose. Then had a endoscope which said I have chronic gastritis. (with no risk factors), why?

HMM. Gastritis means that you have an irritation of the stomach wall...This is not that uncommon. I would suggest that you follow up with your gastroenterologist and follow his advice re the appropriate treatment of this usually moderately benign condition.