The temperature outside the car is lower as compared to the temperature that is inside the car. The moist and humid environment inside the car is very much different to the temperature outside.
When the surface temperature outside the glass is below the dew point the water vapor changes from gas to liquid.
As the temperature outside the glass becomes colder and then it is exposed to warm air inside the car, then it condenses to form frost seen on the windowpane.