Bananas have a compound in them called isopentyl acetate. This is the same compound as the bee alarm pheromone and causes bees to get aggressive and swarm.