It's called the theory of mind
In theory of mind, they believe that a human allows their attribute of thought, desires, and intentions to influence their actions
It is an innate potential ability in humans : one requiring social and other experience over many years for its full development