Don’t know whether I am understanding it the wrong way but Stomach secrets mucus a liquid that prevents the stomach linings from the burning effect of hydrochloric acid.
Small pores called gastric pits contain many exocrine cells that secrete digestive enzymes and hydrochloric acid into the lumen, or hollow region, of the stomach. Mucous cells found throughout the stomach lining and gastric pits secrete mucus to protect the stomach from its own digestive secretions