I really want to emphasize that there exists a lot of far reaching, multi-disciplinary, scholarship on the pig taboo, scholarship authored by some extremely learned folk, and, best I can tell, there is insufficient data to allow for anything approaching a consensus. Leaving aside the scriptural answer, if you think you know how this taboo came about and/or why, you are almost certainly deceiving yourself.
On this question the words of H. L. Mencken rule:
For every complex problem there is an answer that is clear, simple, and wrong.