This was to (hina | ἵνα | conj) fulfill the word that Jesus had spoken indicating what kind of death he was going to die.
Reference
John 18:32
Sequence
264