Tituba confesses because she realizes that it’s a lot easier to put the blame on other people and the only way she can avoid being hanged is to confess witchcraft. Her confession initiates all of the accusations that follow that lead to the witch trials.