What causes pH of the stomach?

the digestive system produces a hydrochloric acid medium for the action of pepsin without which it would be impossible to digest proteins. this hydrochloric acid emission causes the pH of the stomach.