Animal looses interest of the food when going up a block or down one.
When a animal (sheep for example) recognizes its food (wheat for example) it will follow the player. But when the player goes up or down one block the animal looses interest and it takes a long time to get the animal up or down the block.