Why is the superconducting Tc so high in rare-earth-doped CaFe2As2?