Metal heats up under pressure due to the kinetic energy transferred from a hammer during impact, which causes the atoms within the metal to vibrate and oscillate. This process converts mechanical energy into thermal energy, resulting in an increase in temperature. Additionally, friction plays a significant role, as it dissipates energy as heat when surfaces move against each other. The heat generated is a result of both the impulsive load from the hammer strike and the shear forces from friction. Understanding these principles illustrates the relationship between mechanical energy and thermal energy in metals under pressure.