They needed some mini-fortresses, but why build them in the form of a tower? They could have built a secure, easy to defend structure less tall.
Maybe they've built them for showing off, the taller the building, the higher the prestige? At least, that is the reason we have skyscrapers.