A woman's death in hospital has led to a murder charge for a NSW man who police say left the scene of the attack.