Gum surgery becomes necessary when the gum tissue around the teeth is too unhealthy to be repaired with nonsurgical treatments.