Answer:
1. For acidifying stomach content. Hydrochloric acid is the main component
2. Prevents Infections. Hydrochloric acid acts as a barrier against foreign microorganisms
3. Helps in digestion of food. The hydrochloric acid present in the gastric acid.
So basically it helps digest food in the stomach.