HCI is a strong acid. Yet it does not corrode the walls of the stomach. Why?

The HCI produced in the stomach is not as strong as used for industrial purposes.
However, acidic behaviour of HCI does not corrode the stomach walls, because the gastric epithelium of stomach is secretory in nature, i.e., it produces mucus, which covers the stomach wall preventing it from corrosive action of gastric juice.