First of all it's not their country, they took the area by force and no one elected them. 99% of that country lived in fear of the 1%(maybe a little bit of an exaggeration but by much). Second of all they aren't hiding in their towns and villages, they are not welcome in the majority of the places they hide in. They do this because they are relying on our goodwill towards Aphgan civilians and reluctance towards collateral damage. Their only home is the caves and trails, hopping back and forth *from Iran and Pakistan(tribal areas) where they are welcome.
Guess who let them have Afghanistan after they were done using them to fight their proxy war? Uh, America. Whoops. We were also warned that it would bite us in the ass, too. (Republican presidents seem to be too proud and arrogant to listen to foreigner/liberal opinions.)