It is said that Yamamoto had observed a "scene" of a monkey reaching out with stick to retrieve a fruit from a tree. He then had the idea to use a longer weapon to "reach out".
Yamamoto's observation of a monkey using a stick to reach fruit led him to develop an idea for using a longer weapon for similar tasks.