Quasars are formed as a result of supermassive black holes generating enough power for them to fall in the accretion disc. However, this only happens when a galaxy is powerful enough to generate this kind of power, which is only the case with galaxies that collide together, or in some cases, younger galaxies.