All-hostile mobs are unresponsive in Creative Mode
In Creative Mode, all-hostile mobs (Mobs that are never neutral, such as skeletons, zombies or creepers) are unresponsive, even when hit, but they immediately become aggressive if the player changes to Survival mode. However, this does not apply to Spiders or Endermen.