They would also know that there was a chance that the doctor would protect one of them night one. And if no-one died, the doctor would then believe that they had saved that person, thereby "proving" that that person was town. They were playing the odds.