Spring wire that gets coiled has to have the bending stress relieved. Stress relieving is the most common heat treating operation. It relieves the stresses that occur as a result of the spring forming operation. It also returns the material to the strength levels prior to the forming operation and can actually increase the strength to levels greater than originally supplied.
When the spring is under the stress relieve treatment, it may change its dimensions. Stainless steel coils will generally expand slightly when heated: music wire coils will generally contract slightly.
Different wire materials require diverse lengths of time for stress relieving.