I think that theres more then one Ganon in the Zelda series.
There's the Ganon in OOT who dies in TP on the child timeline, and who dies on the adult timeline in WW.
Then in FSA we get a new Ganon who steals the trident and becomes the pig monster Ganon that we see in the 2-D Zelda games...