Why repeated arrhythmia and shocks in spite of having an implanted defibrillator?

Why repeated arrhythmia and shocks in spite of having an implanted defibrillator?