Unfortunately I cannot provide citation for this as I read it online years ago. But an Islamic scholar mentioned that his belief (I admired this scholar as he encouraged Muslims to learn and interpret Islam for themselves and not blindly follow others, even himself!) was that pigs were being consumed at an alarming rate during the first few centuries AD.
Therefore, in order to save them, Allah made them haram (forbidden).
Are there any sources to back this claim?