I think the Doctor intends for it to happen, and makes his (or her) choice of companion primarily based on the likelihood that it will happen. Notice it’s always the young and pretty girls that wind up falling for him in a fanatical sort of way, and all of them have a certain obsessive nature.