I think it’s more accurate to think of you trapping humans in your basement and leaving them a bag of groceries every once in a while. Then you go down there and take whatever they cooked with the produce. They get to eat what they make, you just get the leftovers. They also can’t leave.
Actually if bees don't like the hive you put them in, they absolutely will leave. I haven't had happen to me personally but I have heard of it happening to others; you put the package in and come back to find that 200$+ worth of bees just upped and flew away.
This isn't true for the vast majority of commercial honey unfortunately. If you're buying it from the supermarket, or any producer that operates at even medium scale, they'll clip the wings of the queen so that the hive is unable to leave even if they want to.
No under capitalism the owner gets everything what you make and they will reward you with just enough scraps to keep working.
Joking aside, bees technically have the freedom to escape captivity and leave their hive. I think that is a spot on comparison to how work and living in society is often made up to be a voluntary choice and we're free to go live elsewhere.