You're missing the forest for the trees. Cast iron pans retain heat better than aluminum pans because cast iron pans are 4mm thick and aluminum pans aren't 6mm thick.
(Also it does retain heat better. [EDIT: by thickness, not by weight. The comment below is also correct.])
https://www.centurylife.org/heat-retention-myths-and-facts-d...