Dear Student
ā
Mucous protect the stomach wall from damaging effect of HCl and digestion by pepsin.
Now that the mucosal lining is damaged, the walls of the stomach might get damaged by the highly acidic HCl, thus affecting the process of Digestion.
Regards