A client takes 30 ml of magnesium hydroxide and aluminum hydroxide with simethicone P.O. 1 hour and 3 hours after each meal and at bedtime for treatment of a duodenal ulcer. Why does the client take this antacid so frequently?