What factors lead to hurricane evacuation orders?

Questions about the timing of evacuations in southwest Florida are still being debated after Hurricane Ian devastated the region last week.