Question: why asgardians still alive in endgame?
Answer: They survived because half of the Asguardians( including Valkyrie) escaped before Thanos attacked the ship.