A doctor may recommend surgery for arrhythmia when medications and lifestyle changes haven’t been effective. The different types of arrhythmia surgeries each aim to restore a regular heart rhythm.