Actually, beekeepers take many precautions to keep their bees from leaving.
many clip the wings of the queen, destroy new queen cells, cull queens they don't like and use bee pheromones to prevent a hive from naturally swarming or absconding. They also try and prevent mating with the African honey bee, which makes them less docile among other things. During artificial insemination of queens, drones are crushed and βspareβ queens are killed.
and commercial beekeepers even cull their hives during winter, or when they are not producing well.
Coupled with the fact that there is evidence that insects do feel pain, this is not great.
(Not to mention that honeybees are an invasive species in most places, competing with native pollinators and spreading disease)