Resources are limited and different economies have different resource management. They extract different resources and they distribute them differently. I suppose that anthills and beehives are complicated enough to have resource management and consequently their own economics. But how can we describe them in terms of human economics?
As far as I know, ants and bees don't have any central authority, their queens don't decide anything. It's like they are all parts of one brain that guides them, it's called "swarm intelligence". And everybody pursue well-being of their brothers and sisters(even future ones), because it guarantees survival of their genes. Some ants don't have anthills, they travel a lot and survive by robbing ants who have anthills. Peaceful ants can grow mushrooms for food, grow aphids for theirs milk, regularly hunt down bugs and forage. Some ants can kidnap larvas from another anthill and make them slaves.