Pakistan, Iran, Irak, and some other countries are complete shitholes. If not because of Islam, they would still find a reason to commit those barbarities.
It's like if some ethnic groups never evolved, and their average low IQ stops them from being rational beings. Even if you put them on a civilized place, next to civilized people, they just don't adapt.