Djokovic was defaulted for hitting a ball in anger that struck and injured a line judge. He wasn’t trying to hit her, but the ball hit her in the throat and she had to be removed from the court. All the announcers said that there was no choice but to default him because the rules are explicit in that type of situation.