Bend a paperclip back and forth and it eventually cracks. Bone under repeated loading can crack the same way.
Stress (hairline) fractures come from repetitive loading of otherwise normal bone. They are small, usually non-displaced fractures, with little soft tissue injury. Mild cases may not be spotted until callus shows on a later X-ray. Not all need immobilisation; it may benefit those who present early or are in pain, and the type used depends on the fracture site.