It's s deterrent. Very common in Latin America. Most crime is opportunistic and thieves can be in and out well before police or private security arrive. Justice can be hard to come by and police could even look the other way if they are in in it with bribes or in bed with organized crime.
It is shocking at first to see razor wire, electric fences, perimeter sensors, shards of glass embedded at the top of concrete block walls.
In the US you don't know if that house you are targeting has someone inside waiting with a gun. That is shocking to many outside cultures too.
Chile has pretty lax gun laws (by South American standards).
In South America, plenty of people have guns - they just don’t have permits or licenses for them. Chile is relatively orderly on that front, but most places aren’t.
So unlike the US, it’s a lot less likely someone is going to call the cops if someone gets shot.
>razor wire and electrified fences around properties
That is a sure sign that LOCALS see dangers present