During the fall of Troy the ghost of Hector appears to Aeneas and brings him the City penates which he tells Aeneas must be carried to a new city which Aeneas will found in Italy.
The penates were the special gods of a city - the soul of that city - and a city only truly died when its penates were destroyed or captured.
Hector was the Protector of Troy (there is some evidence that Hector means 'bulwark', and Hector's son - Astyanax - is 'lord of the city'). So there is a religious significance that Hector brings Aeneas the soul of Troy to carry to a new city in Italy.
(Astyanax will not survive the fall of Troy, as we discover in Euripides' Trojan Captives).
If Aeneas can escape with the penates Troy can live again in a new city (first Lanuvium, then Alba Longa, and finally Rome). As guardian of Troy Hector will protect its penates, even after his death.