The human brain actively participates in the processes of making memories. During learning, it makes rational links to other information. When we try to recall some of this information, the brain might establish certain seemingly illogical links. Most of the times, we tend to trash these connections. But there’s a reason why we might want to doodle our way to see where we end up with the same “mindlessness”.
The brain processes the word "pyramid" and the hands make a picture of it. There are numerous images of both pyramids and leaves in the brain for it to form a quick visual link.
All higher order features of vision are influenced by expectations based on past experience. They can fool the brain but also enable us to see and respond to the visual world quickly. What is registered in the brain as memories of experiences can include one’s own mental activities.
It is possible that the brain makes connections based on one or many grounds on which the objects are similar. For example, the above gif shows how one pattern triggers the memory of various objects.
Reference articles:
Thank you for having a look and have a great time doodling!