Earth radical at the bottom — molds were originally clay casings into which molten bronze was poured to cast vessels.
型 names the mold itself. Modern senses 'type, model, pattern' all flow from this casting metaphor: a
型 is the form that shapes whatever fills it.