This assumes Erdogan is rational or that he would be quite concerned with the lives of those going outside (something which could be true, but his dealings with earlier uprisings give me doubt). Mass protests against the coup (even if Erdogan is on the winning hand) could solidify his support and give a signal to the military that future coups might not be succesful.