Minecraft wiki entry for Development_versions, associated text: Add mob's health bar to the Heads-up display when riding on it (both pigs and horses).
When riding something, like a mob or a boat, dismounting is only possible using the Sneak key, ⇧ Left Shift by default.