AoT's world within the walls is in fact surrounded by an even greater wall within which titans live. In reality, the government within tries to stay isolated from other countries and therefore, it surrounded itself with titans so the people within could not go out and the people from outside could not go within. Shifters are in fact rebels from outside who try to breach the walls to enforce democracy within the authoritative state.