When Danforth confronts Abigail, the first thing she does is this.
Threatens him
John confesses to adultery for this reason.
To save his wife Elizabeth/discredit Abigail