He did not say this on his own; as high priest at that time he was led to prophesy that Jesus would die for the entire nation.
And not only for that nation, but to bring together and unite all the children of God scattered around the world.