Correction: John Proctor is not hanged—he is pressed to death (peine forte et dure) for refusing to enter a plea.
After Hale's confession exposes the trials' falsity, ~100 accused are released—but Proctor's refusal to confess (preserving his name/integrity) leads to this brutal execution method.
His death is a final act of defiance against a corrupt court.