It regulates the acid level in the stomach