Galton observed in 1886 that extreme traits revert toward the mean; the word passed from biology to quality control to software testing.
In the 1880s, Francis Galton was studying heredity. He noticed that the children of tall parents were, on average, shorter than their parents; the children of short parents were, on average, taller. He called the phenomenon regression toward mediocrity, and later regression toward the mean. The word regression entered statistics through his work.
From statistics it passed to quality control in the mid-20th century: a process that had been stabilised could regress to its previous unstable state. Software testing adopted the term in the 1970s and 1980s, with the growth of structured methodologies and automated testing tools. The sense survives: something that had been fixed reverts.