Humanity is embedded in most peoples nature. The desire to do good, if I see some women being mugged in the street, I'd want to help her and any religious beliefs wouldn't cross my mind.
You think he was doing this good out of his belief in islam? This is up for debate.
Were the talibanis doing their actions out of their belief in islam? Definitely.
Let's not forget haider, that islam itself restricts education for girls. Direct from the koran the word of God, the infallible word of God.