Enzymes are proteins. Proteins are long chains of amino acids linked to each other by peptide bonds. Amino acids have many functional groups in their structure.
These functional groups are many of them at least, ionisable. As they are weak acids and bases in chemical nature, this ionisation is influenced by pH of the solution. For many enzymes, activity is influenced by surrounding pH. This is depicted in the curve below, explain briefly.