All possessions in FNAF are best explained with the Remnant theory, which suggests that the animatronics had a metallic substance known as Remnant inside of them. This material, capable of binding souls to inanimate objects, bound Gabriel's soul to Freddy when he was stuffed inside it following his murder, resulting in supernatural possession.