One common use of torture in society today is for sadistic psychopathic pleasure. If society were somehow to progress to the point where people with antisocial tendencies could reliably be identified and effectively treated, then that aspect of torture could very well fade away.
The other use of torture, to extract information, is widely claimed to be ineffective. I conjecture that many of those who claim torture is useful, despite all the evidence, may well be people with antisocial tendencies. Cure the psychopaths and you might also cure these lesser antisocial trends.
Once torture is no longer in use, it could eventually be forgotten by common people.
However, I think this last conjecture is the least realistic of my assumptions.