The defensive measures implemented by Nehemiah, Hanani and Hananiah were only for short-term, because the bigger goal was to reestablish Jerusalem as the center of Jewish culture and religious purity, so it has to be repopulated from some people who then lived outside the city.