They said this so that Jesus's words might be fulfilled indicating what kind of death he was going to die.