During the time of the Holy Temple, Hashem requires every Jew to visit the Temple Mount thrice yearly, on Pesach, Shavuot, and Succot. This mitzva also obligates the entire Israelite Army and every single soldier. If they're all in the Holy Temple, then who's guarding the borders?
Have a wonderful Shabbat! You're welcome to download our weekly Torah-portion sheet.