Is this somehow related to the prohibition against pork we find in the Bible and later in Islam?
The Jews would first have had to cook both people and pigs to make the comparison, wouldn’t they? I don’t think it’s that.
The ancient Egyptian priests had strict dietary rules which included abstention from the flesh of swine. Moses was in all probability brought up in familiarity with Egyptian priestly principles and adopted many of them for his new religion. Moses was very likely schooled as an Egyptian monotheist, as he lived around the time of Akhenaton*, so that would explain the central feature of Mosaic doctrine.
At any rate if you look at the iconography you will see many obvious parallels between Egyptian religion and early Judaism.
*Gary Greenberg The Moses Mystery: The Egyptian origins of the Jewish People or have a look here
I’ve long thought the Moses myth of being found by Pharoah’s daughter in a reed basked was a version of the Osiris myth and a Jewish claim that the true Egyptian transmission was through Moses.