Minecraft wiki entry for Sitting, associated text: If the player is in a minecart.
If the player is in a boat.
If the player is currently riding a pig, horse, skeleton horse, donkey, mule, llama, or a strider.