There are reasons why they are there, and that's to eradicate the terrorists. It won't be an easy job, but yeah. If they didn't go there in the first place, how many terrorist attacks do you think would have happened within that timeframe? There could be other reasons as well, but that is one valid reason for being there. Not to mention the fact that in future wars, countries/organizations will just do the same thing to win.