Why do bees get mad in Minecraft?

Why do bees get mad in Minecraft? If the player hits a bee, all nearby Bees will become angry. If the player breaks a nest or hive, the Bees inside the nest will become angry. If the player collects hive resources, Bees inside the hive will become angry.

If the player hits a bee, all nearby Bees will become angry. If the player breaks a nest or hive, the Bees inside the nest will become angry. If the player collects hive resources, Bees inside the hive will become angry.