It is interesting to ask whether there's any general reason why being religious might make you do nice things or indeed nasty things. It's possible that people do nice things because they're religious. One reason might be they're hoping for a reward in Heaven, which is not a very noble reason