A drop of hydrochloric acid can burn many layers of skin immediately; why is it then secreted in the stomach?
Hydrochloric acid activates some enzymes.
The hydrochloric acid kills many bacteria that enter along with the food and makes the medium in the stomach acidic and helps the digestive juices to act. The digestive juices break down the proteins into simpler substances. Mucus secreted in stomach protects the wall of stomach from this acid.