As far as mobs are concerned the world is a flat plane, so whenever you raise or lower the ground it means their pathing no longer "see" your constructions as being in their way, and they just walk right through them like they don't exist.
Not sure if the new AI will change this or not.