Jesus death was in complete accordance with prophecy and Scripture
But when they came to Jesus, and saw that he was already dead, they didn’t break his legs. However one of the soldiers pierced his side with a spear, and immediately blood and water came out. He who has seen has testified, and his testimony is true. He knows that he tells the truth, that you may believe. For these things happened that the Scripture might be fulfilled, “A bone of him will not be broken.” Again another Scripture says, “They will look on him whom they pierced.”
from Good Friday topic