When in creative mode, when mobs are spawned with the spawner/spawn eggs, the mobs in question begin to try to attack the player/track the player. This would be a minor inconvenience and funny if not for the creepers that blow holes in the ground trying to kill the player in creative.
This is not a bug. In creative mode, you have to test out how fun your project is, or other players may shortly leave your world.