They don't have to be
that near Earth. Just nearer than the outer planets, the asteroid belt, probably Mars, etc.
Besides, if it's strategically placed, it could easily threaten Earth with kinetic projectiles if Earth's political systems attempt to take control of it. Military units inside a deep gravity well have an enormous disadvantage to those outside the gravity well.