Southern Ontario smog and frost in one week in June

Last week we had smog warning days in Southern Ontario with temperatures of 29C. Tonight, we are seeing the risk of frost with the temperature being just a few degrees above freezing.And all this in the span of a week, and in June too!