I think that differentiation is the correct answer in that as the crystals form, first the higher temperature minerals form (like plagioclase felsdspar )and combinations of them form rocks, and then as the magma cools off, lower temperature minerals (like orthoclase feldspar) form and create rocks with a lower temp of formation,