Both jews and muslims don’t eat pork as part of their religions.
Why would this have come about.
In the olden days people didn’t know about the parasites and didn’t have proper cooking facilities and therefore a prescription against pork would have been one of the reasons to avoid it.
Nowadays people do know about the parasites and do have proper cooking facilities and therefore this simply cannot be why the pork restrictions still exist.
And the reason is this. All religions want their followers to be different from non followers in order to create in and out groups so as to foster in and out group feelings.
So nowadays its nothing to do with parasites, is it.
Its all about “we are different (i.e. better) than them”.
Otherwise why bother with the restriction any more.