Why do they have to shock me during the implant?

The surgical team analyzes the system for proper lead placement, and to confirm that the device can sense your heartbeats appropriately and deliver the right kind of therapy.