>>15999747The pokemon inside an egg is predetermined, but its shiny status is not. This is because shininess depends on an operation that compares the pokemon to the ID of the owner.
This means that an egg that wouldn't hatch shiny for you WILL hatch shiny for a different trainer whose ID matches the requirement. This tool lets you figure out what that ID is.