When you are raiding, your Bumbles are there to raid and not attack. However, the more Bumbles you have with you on a raid, the more likely you are to gather Nectar successfully.

However, when you are being raided, your Bumbles will attack the player raiding you and their Bumbles.