The hardening increases the material's inherent tensile strength, which in turn leads to material failure (fracture) only occurring at higher stresses (link to stress).
Strain hardening occurs particularly in metals when they are plastically deformed beyond the elastic limit.
The deformation disappears again completely within the elastic range as soon as the stress is no longer effective.