The company town should make sure it’s not surrounded by millions of berserk peasants armed to the teeth...
They don’t.
They trust that all the armed guards will protect them from the great unwashed outside the area.
Or they don’t know they exist.