I really think there are just random shinies in every 100 or so games. I really don't know. The only shiny I have ever caught myself was in Soulsilver I believe. It's just luck.
On the other hand, in real Pokemon life, I think some Pokemon parents just get lucky. It's probably just a trait that...