he ; like every other shinobi has a sensei , gets taught the basics and how everything works , then presumably he was a genius , and quickly adapted to everything he was taught , then comes a point when he surpassed his master , and then achieved KKG... simples :)