Quick Answer: On clear nights, glass and other surfaces near the ground give off more heat radiation than they get back from the sky. That lets them cool below freezing while the reported air temperature stays above it. Once they reach the frost point, water vapor turns straight into ice on them, which is frost.

What the frost point means

In everyday words, the frost point is the temperature at which water vapor in the air turns straight into frost on a surface. The NWS training page says that when frost forms, the water vapor goes directly to the solid state.

Why a windshield can frost while the air reads above freezing

The NWS training page says that if a car windshield near the ground falls below the frost point, frost crystals may form. Air temperature observations are taken about 4 feet above the ground, where it can be warmer than the ground.

The Weather Guys page gives a grass example: grass in an open field reached the frost point before grass blades under a tree did.

Why clear nights matter

Clear skies allow the maximum release of longwave radiation to space.

On a cloudy night, clouds are much warmer than the universe beyond them. The NWS reader Q&A says that if the temperature stays above freezing, this effect generally occurs only on clear nights.

Sources & further reading

That’s the mechanism. The wonder is still allowed.