The acidic environment created by HCl is also essential for the activation of pepsinogen into pepsin, the main enzyme for protein digestion in the stomach.