There are those who simply want to live their lives, and feel they cannot live the way they want to in Iran. Others are ideologically motivated: They will stay no matter what and try to change things.
Napoleon had been fighting this army of slaves and free people in Haiti and it depleted his forces. And after the Revolution, when the French were driven out, they stopped and sold this big chunk of North America to the Americans for very little money.