Osiris, like Adonis and Attis, was slain or mangled by a boar, or by Typhon in the form of a boar. Thus, the annual sacrifice of a pig to Osiris might naturally be interpreted as vengeance inflicted on the hostile animal that had slain or mangled the god.
But, in the first place, when an animal is thus killed as a solemn sacrifice once and once only in the year, it generally or always means that the animal is divine, that he is spared and respected the rest of the year as a god and slain, when he is slain, also in the character of a god.
In the second place, the examples of Dionysus and Demeter, if not of Attis and Adonis, have taught us that the animal which is sacrificed to a god on the ground that he is the god’s enemy may have been, and probably was, originally the god himself. Therefore, the annual sacrifice of a pig to Osiris, coupled with the alleged hostility of the animal to the god, tends to show, first, that originally the pig was a god, and, second, that he was Osiris.
At a later age, when Osiris became anthropomorphic and his original relation to the pig had been forgotten, the animal was first distinguished from him, and afterwards opposed as an enemy to him by mythologists who could think of no reason for killing a beast in connexion with the worship of a god except that the beast was the god’s enemy; or, as Plutarch puts it, not that which is dear to the gods, but that which is the contrary, is fit to be sacrificed.
Frazer, as well :-)>