Question: how did uub come about?
Answer: It is revealed here by Goku that Uub is actually the reincarnated Human form of Kid Buu, and that he was born from the wish made by Goku just before he defeated Buu with the Super Spirit Bomb.