They probably climbed up the pipe sensing a water source and were hanging of for dear life up there until they got popped out.
That being said, I get that people are allergic to bees, but how many times have you ever got stung? And actually needed a hospital? I hear a lot of people say this...