Answer:
The high temperatures of volcanic magma creates hydrothermal veins, allowing some of the heat to escape near the upper layers of the Earth's crust. This is why copper is often found in the sedimentary layer, where sand and mud are compressed until they form a layer of sedimentary rock on the surface of the earth.