We don’t know why God chose to deliver Peter from death and James through death. The text doesn’t say.
K. Howard Joslin, Honest Wrestling: Questions of Faith When Attacked by Life
death, deliverance, endurance, faith, martyrs