He could have fled Troy, but stayed to defend his home and family, even ultimately facing Achilles in a battle he knew he could not win.
When Achilles drags Hector's body around Troy, the corpse is incorruptible, which can be taken as a precedent for Jesus' incorruptible body.
the daughter of Zeus, Aphrodite, kept dogs from him by day alike and by night, and with oil anointed she him, rose-sweet, ambrosial, to the end that Achilles might not tear him as he dragged him. And over him Phoebus Apollo drew a dark cloud from heaven to the plain, and covered all the place whereon the dead man lay, lest ere the time the might of the sun should shrivel his flesh round about on his sinews and limbs.
[Source: Iliad, 23.161]
The structure of the Iliad supports the importance of Hector—it begins with the "rage of Achilles" and ends with "the funeral of Hector, breaker of horses."
The pity that is evoked by that final line is on par with pity felt towards religious martyrs, and Hector is definitely regarded as the main martyr of Troy—most esteemed and impeccable in his conduct.