Why extremist/terrorists target holy places?

But what is the mileage they are getting ?O.K I agree,they have an agenda but how do they accomplish by targeting shrines?Are thy not alienating themselves? Do not you think they know it clearly?