Its a valid point that we should not add water to acid and it should be the other way round, as the acid can splash due to the heat generated and will cause burns.
But in our stomach, even if you don't drink water, HCl and other enzymes are secreted continuosly which, logically, should have burnt the stomach.
Stomach protects itself from being digested by its own enzymes, or burnt by the corrosive hydrochloric acid, by secreting sticky, neutralising mucus that clings to the stomach walls. If this layer becomes damaged in any way it can result in painful and unpleasant stomach ulcers.
So, even if water is being added to acid, there is no explosion as the acid is continuosly neutralized by the mucus and thus, the stomach remains protected.