Sorry. I think what I meant to say is that although some things are calculated and planned there are also elements of instinct and of intuition.
You could say all of that comes from some part of the brain.
Is there a question behind your question?
Also I sometimes wonder if the people who write those books have ever even had sex

Of course it could be dramatic license or character development