Long time ago God gave the Israelites rules on food to consume. The bible tells us pigs are unclean animals and we should avoid eating neither should we touch it. At that time under the rule God gave Israel, eating pork meat is forbidden. When you obey this rule it means you're following what God said.
Leviticus 11:7-8 And the pig, though it has a divided hoof, does not chew the cud; it is unclean for you. You must not eat their meat or touch their carcasses; they are unclean for you.
When Jesus came to earth he taught us that the food we eat doesn't make us a sinner, he said kill and eat because he created those animals for us to feed. Jesus also teaches us, is not what we consume that makes us a sinner, but what comes out from our heart. The coming of Jesus Christ has made all food clean for us to eat.
Acts 10:15 Do not call anything impure that God has made clean