Spoilers from here for the original trilogy.
Because Luke stops fighting. The turn is triggered not by an argument or a defeat but by Luke throwing away his weapon and refusing to become what his father became, which removes the outcome the Emperor was arranging.
What the Emperor is trying to do
The plan is specific and stated. He wants Luke to kill Vader in anger and take his place, which would complete the same corruption that produced Vader in the first place.
Everything in the throne room is designed to produce that: the destruction of the fleet, the taunting, the offered lightsaber. The Emperor is not trying to kill Luke; he is trying to convert him.
Why Luke nearly does it
He comes very close. The moment that breaks him is Vader reading his thoughts and finding Leia, and the threat that if Luke will not turn, his sister might.
Luke's response is uncontrolled fury, and he beats Vader down and severs his hand. Then he sees his own mechanical hand alongside his father's, and recognises what he is becoming.
The refusal
He throws away the lightsaber and states that he will not fight. This is the decisive act of the trilogy, and it wins by removing the terms of the contest rather than by prevailing within them.
The Emperor's response is to kill him, because a Luke who will not turn is no longer useful. That is the situation Vader is left standing in.
What changes in Vader
He watches his son being killed for refusing to become him. Luke's last words are addressed to his father rather than to Vader, using the name and asking for help.
The films have been building this since the previous instalment, where Luke asserts that there is still good in him and Vader does not deny it, saying instead that it is too late. The scene puts that claim to a test that cannot be deflected.
Why it works dramatically
Because Luke has done the one thing the Emperor cannot counter. Every tool available to him operates on anger, ambition and fear, and a person who refuses to act at all presents nothing to work with.
Vader's action is also entirely physical and entirely silent. He does not speak, does not deliberate on screen, and simply picks up the Emperor and throws him. The decision is shown in the helmet turning between his son and his master, and nothing else.
The prophecy question
The prequels introduce a prophecy about a chosen one who will bring balance to the Force, and Anakin is identified as that figure.
Read across all six films, the throne room is where it is fulfilled. Whether the fulfilment makes sense depends on what balance is taken to mean, and the films never define it clearly, which is why the prophecy remains among the more argued-over elements.
The cost
Vader dies of the injuries. Removing his mask kills him, which he knows, and he asks for it anyway so that he can see his son with his own eyes.
The redemption is complete and lasts a few minutes, which is the correct proportion. The films do not suggest the act cancels anything he did.
What Luke understood that the others did not
Obi-Wan and Yoda both tell him that Vader must be destroyed and that there is nothing left of Anakin. Luke rejects this on no evidence beyond an instinct in their previous encounter.
He turns out to be right, and the two most experienced figures in the trilogy turn out to be wrong. That is a substantial claim for the film to make and it is made almost in passing.
The unmasking
The scene is played almost entirely in reaction. Luke removes the helmet, the face beneath is ruined, and what the film gives you is a dying man looking at his son with his own eyes for the first and only time.
Nothing is explained and no case is made. The trilogy ends its central relationship on an image rather than an argument.