There wouldn’t have been any pigs in Iberia from the 600s until perhaps the 1100s, for reasons that I suspect could be guessed by anyone here.
There were pigs in Iberia. Not all of the peninsula was conquered, and there were some places that were under the Arabs for only a short time.
Well, they were still there, but they were disguised with burkahs.
And when there was a merry mixup, no one could tell the difference.