It’s not necessary to use campfires on beehives when you want to get some honey or honeycomb, but it’s recommended. If you try to harvest resources without the fire, the bees will get mad and become hostile.