An explanation of the compensation effect in catalysis