One fry cooks the inside, the other crisps the outside.
A great fry has a fluffy inside and a crisp, golden shell. It's hard to get both in one pass. If the oil is hot enough to brown the outside quickly, the middle stays raw. If it's cool enough to cook the middle, the outside goes pale and soggy.
The double-fry method solves this. The first fry, often called blanching, is at around 300 to 325°F (150 to 160°C). It cooks the potato through until soft, without much color. The fries then rest and cool, which lets the surface dry and form a thin starchy skin. The second fry, at around 350 to 375°F (175 to 190°C), quickly turns that skin crisp and golden.
Starchy potatoes like russets work best. Many cooks also rinse or soak the cut fries in cold water first to wash off surface starch, which helps them crisp without sticking.
Belgian frites and many famous burger chains use versions of this method.