Zamindars had some villages under their control. They were the mediators between the rulers and the ruled. They had much income also. So they lived in small forts.
To protect their people from thefts and attacks, to collect revenues they needed soldiers. So they maintained them.