Consciousness is not especially well-understood, and there's some evidence that even under general anaesthesia, humans experience disconnected consciousness (i.e., consciousness without a perception of environment). It's not unreasonable to think this may be true in pigs, as well.