Because they contain amino acids with basic R groups that act as a base, meaning they accept hydrogen ions. They then become positively charged. This affected the ionic bonds and hydrogen bonds in the protein. This results in the enzyme denaturing and therefore alters its function.