It is the hardening process that extends the yield point up so that when the spring is compressed the material doesn't yield. If it is too hard the yield point will be very high but the spring will be brittle. If it is too low the spring will yield and not spring back properly. The alloying elements let you push the yield point up further while avoiding brittleness. You need to get the heat treatment right though.