They did, at least the smart ones got out while the getting was good. The eruption was not a sudden unexpected event. There had been warning signs for weeks before the big blast. The ones that remained were the ones who for some reason could not leave or they were simply the type of people who ignored good advise. Proof of the evacuation of the majority of people is in the comparatively low number of bodies found for a town of Pompeii's size.