A clear case of this mismatch is compound words, which count as two words phonologically, but one in the syntax.
A notable illustration of this inconsistency is the case of compound words, where they are treated as separate units in terms of sound but as a single entity in terms of grammar.