Actually pigs carry a lot of diseases
that carry to humans including trichinosis. Pigs at that time were roasted whole over a fire pit and eaten rather rare. It was definitely a health risk.
I remember reading about a trial about cooking pork and sausage well because of trichinosis. People would have it so bad that you could hit certain muscles and the muscle would be crunchy.
Also certain shellfish were poisonous during certain times of the year and after certain things going on in the ocean, like the red tide.
What I'm saying is that certain food restrictions make sense today with our knowledge of diseases and their causes. They didn't necessarily make sense back then but it allowed the Jews to be healthier and live longer.