When a lens is designed, typically an optimiser is used to try to find a combination of lens elements that focuses light of all wavelengths to the same spot across the whole image. If all the same type of glass is used, then it's hard for the optimiser to find a solution that corrects for the chromatic aberration across all the spectrum, because if it adjusts (for instance) something to fix the green aberration then it'll mess up the blue and vice-versa. But if a different type of glass is used such as fluorite, which has a different pattern of chromatic dispersion, then that gives the optimiser an extra degree of freedom, so it is more able to independently control the aberration in the different colours and make a lens that performs well.