Mobs cannot pathfind correctly in certain situations.
They would get stuck trying to pass through a <2 block gap.
Note that they can perform the same task correctly when the block is replaced with something with a full top, but still transparent (e.g. top slab).
Further testing suggested that sometimes this still happens even if the block is removed entirely.