You are enjoying a spring day but expect a storm to arrive soon. As the storm arrives and the rain begins to fall, you notice that the temperature drops dramatically. Most likely, you have just experienced the arrival of a cold front.
That's why rain occurs. A cold front crushes with a warm front. With the necessary pressure and temperature condition, the rain started.