With AGI that is no longer true, they can just replace most people with computers and automated combat drones while they keep a small number of personal servants to look after them. Currently most jobs either is there to support other humans or can be replaced by a computer, remove the need for humans and all of those jobs just disappear and leaders no longer care about having lots of people around.
but human(oid) intelligence is still scarce, and they don't have AGI (other than Data)
there is however a society that has no need for humanoid intelligence, and that's the Dominion
and I suspect that is what our society would turn into if AGI is invented (and not the Federation)
I almost regret being at this phase of life where we are aware of what's possible but we most likely not see it in our lifetime. This AGI talk, colonization of space, etc... but can strive towards it/have fun trying in the meantime.
that's one way of putting it
it will remove the need for the vast majority of the population, which will end extremely badly