He did not (ouk | οὐκ | particle) say this on his own, but being high priest that year he was prophesying that Jesus was about to die for the nation, Reference John 11:51 Sequence 591