More often than not, the parts of us that have not sufficiently adapted to external reality or that have not entirely healed are attracted to their unhealthy counterparts in other people. This attraction can take many forms. Because of the underlying tension, they carry intense feelings that often manifest in sexual attraction, though they can just as easily take the form of open hatred. It's usually both, the interplay between these apparent extremes accounting for both the intensity and the longevity of this dynamic.
Been there and done that more times than I would have liked.