When making a metal object for a mechanical application, an alloy and tempering is usually selected to make the construction resistant to damage.
The material of a shear pin is selected and treated so that it is relatively resistant to fatigue (material).