Fact 1: Cells secrete acids and bases to maintain the proper pH for enzymes to work. 
Fact 2: Enzyme mechanisms Enzymes are biological catalysts.
For biological catalysts to be able to work, cells secrete acids and bases to maintain proper pH.