This is related to the well-known psychological phenomenon of transference, in which we project images of people from our early childhood onto people in our present lives. We unconsciously see this person as mother and that person as father, with the corresponding image of ourselves in relation to them, recreating these early relationships.