Well we don’t eat pork and don’t drink alcohol because it’s God Commandments. Actually it’s already in the Koran and Bible as well,

you can see in Bible Leviticus chapter 11 verse 7, it says do not eat pork because it’s unclean for you …
Unclean means dirty so it’s not good for our body right …

so as a devout Muslim we have to obey God commandment ,
but the exception if you didn’t find any food because of emergency, you are going to die if you didn’t eat it because You’re starving ,
so you are allowed to eat it