Honey bees vigorously defend their hives from perceived threats. If you stumble upon a honey bee hive and the bees sense you as a threat, they will actively attack and sting you.
When a bee stings, it injects an methanoic acid into the skin which causes immense pain and irritation. We can get relief from this acid by rubbing baking soda on the affected area. This is because, being a base, baking soda neutralises the effect of methanoic acid injected by bee sting which is an acid and cancels its effect and gives relief.