During the process of digestion, the ph level in the stomach is lesser that the ph of the duodenum but higher than the small intestine.
In the process of digestion, food will be fully digestive in the stomach which needs higher ph level then secreted to small intestine for further digestion.