Trichinosis has typically been present in pork.
As well as in wild game, including several types of kosher animals.
And other types of kosher meat have their own health risks: chicken is known for salmonella and beef is known for e. coli, for instance.
It doesn't make sense to say that this dietary law had a health benefit.
OTOH, as I pointed out earlier, I think it does make sense to say that it can be attributed to lifestyle differences, since pigs are incompatible with a nomadic lifestyle. An ancient Jew who was eating pork had either:
- started raising pigs himself, which would mean he had abandoned his culture's traditional lifestyle, or
- got the pork from someone else, which would mean he was consorting with non-Jews. This could be seen as a threat to the insularity and cohesion of the Jewish community.