And they get away with those things because we do worse things.
They beheaded a 7 year old boy and stoned a couple to death. One of our attack choppers (Or maybe it was an AC-130, can't remember), slaughtered a camera man and his entire crew with 50. cal bursts, and then when civilians appeared to help those that were still living, we blew them up to, also with 50. cals. None of them were terrorists, none of them had guns, they were journalists. 12 people dead. Aside from that, we frequently kill innocents on accident all the time either in firefights, or by blowing up their houses. And it's for a number of reasons, usually it's not on purpose, it can come down to bad intel or even just panic. But do you think they care if it's an accident? "Yeah you just killed half my family while trying to get 1 terrorist, but hey it was an accident so we're good". No... for every horrible act the Taliban do to the public on purpose, we do it on a grander scale on accident (and sometimes on purpose), which just fuels the fires. The message the Taliban puts out to the public is "We have harsh, traditional laws. But we're doing it to push those white devils out of your homes and to prevent them from touching your women and killing your children." Our message is "If you look suspicious we will blow you up on instinct, and if you are brown then you look suspicious." Not a good situation for us.