He was created by seven Alakazam to overthrow Prof Oak
Ok, this getting to silly
There is a pokemon movie with young proffesor oak going to a forest because he was gathering info and drawing pokemon leading to his pokedex. This legendary pokemon comes and teleports him to the future where he meats ash brock and misty. They become great friends and in the end oak returs to his time. If I remeber correcly sam (oaks first name) drew a picture of him and ash and they saw some other legendary pokemon. This leads to the end of the movie where ash tells oak about his trip and that he saw a legendary pokemon and oak says he has seen it too. We then see oak looking at sketchbook revealing to be him and ash. SAMUEL OAK IS NOT ASH'S FATHER BUT A FRIEND. I know this is messy but it's all i remember from movie.