In a first approximation in quantum mechanics, all attractive symmetric potentials have as a dominant term the harmonic oscillator functional form thus one can use the language of a restoring force , because a spring is a harmonic oscillator and the terminology carries over.