Freud called this a “repetition compulsion.” He thought of it as an unconscious drive to repeat the horrors of the past—sometimes, perhaps, to formulate those horrors more precisely, sometimes to attempt more active mastery and sometimes, perhaps, because no alternatives beckon.