By inhibiting the carbonic anhydrase enzyme, these medications decrease the production of aqueous humor, leading to a reduction in IOP.