Inclusion--exclusion: why the alternating signs work