Minecraft wiki entry for Cat, associated text: If a player is harmed by a hostile mob or a harming potion, but not by environmental damage, a cat sitting in proximity to the player stands, moves a few blocks from its sitting location, and then resumes sitting.