A Riolu egg is found at Canterlot Castle and soon hatches. Princess Celestia chooses to raise the Pokemon like her own colt and since then has always been by her side.
I'm a Brony at heart, even if I don't always show it. The show, FanArt, FanFictions and the community itself always help me get back into the fandom. :D