Jewish law on this topic is like a thousand years older than the prophet Muhammad, or more, it's not exactly clear when the contents of Leviticus first stabilised.
As for pork as food, it's as old as neolithic societies. Wild boars were a very popular food source, hence why they were eventually domesticated. Now pigs don't produce tasty milk in the same way sheep, goats and cows do, but they produce a lot of meat and offspring without being picky about diet.
Leviticus does not say 'pig meat makes your tummy ill and then you die, so obviously don't eat it', instead it says 'pigs don't chew cud, hence they're impermissible', and frames it as a cultic uncleanliness, similar to contact with menstruating women or somesuch. People don't get parasites and die from a hug with a menstruating woman, but there are still rules in early judaism about it and as far as I know no speculations about it being in any way health related.
If pork wasn't a main meat in Egypt and the Levant in like the bronze age, then it would likely not have been a prominent diet rule in early judaism. G-d has this tendency to make up rules about stuff that people do rather than stuff that they already don't. When it's about things that people don't have to be constrained from doing or encouraged to do that they're already keen on doing, the genre tends to be poetry rather than law.
As for pork as food, it's as old as neolithic societies. Wild boars were a very popular food source, hence why they were eventually domesticated. Now pigs don't produce tasty milk in the same way sheep, goats and cows do, but they produce a lot of meat and offspring without being picky about diet.
Leviticus does not say 'pig meat makes your tummy ill and then you die, so obviously don't eat it', instead it says 'pigs don't chew cud, hence they're impermissible', and frames it as a cultic uncleanliness, similar to contact with menstruating women or somesuch. People don't get parasites and die from a hug with a menstruating woman, but there are still rules in early judaism about it and as far as I know no speculations about it being in any way health related.
If pork wasn't a main meat in Egypt and the Levant in like the bronze age, then it would likely not have been a prominent diet rule in early judaism. G-d has this tendency to make up rules about stuff that people do rather than stuff that they already don't. When it's about things that people don't have to be constrained from doing or encouraged to do that they're already keen on doing, the genre tends to be poetry rather than law.