It is unlikely for it to be hacked. It is entirely possible for Pokemon to be bred and come in the Poke ball of the parent. Whether it's a Beast ball, Ultra, Dusk, etc. Besides, who would hack a level 1 Magikarp without it being shiny? :D
Source: Through breeding my own Pokemon