This might help,the presence of hydrochloric acid creates an acidic environment within the stomach that is needed to convert pepsinogen to pepsin. Mucus that is produced by the epithelial cells of the stomach help protect the lining of the stomach from the corrosive hydrochloric acid and pepsin.