Stockholm syndrome
noun [U] /ˈstɒk.həʊm ˌsɪn.drəʊm/
the situation when a person who has been taken prisoner starts to like or trust the person or people who have taken them:
"In hostage-taking situations, it is not uncommon for Stockholm syndrome to develop."