Assisi was built on hill or mountain like many Italian towns in the Middle Ages. It's obvious for defense.