Usually this example comes up in discussions of how the inductive effect changes pKa, and there is a comparison versus acetic acid. Perhaps to emphasize this difference, only the inductive effect of chlorine is shown, but the carboxylic acid group effect is there in both molecules and could be shown.