Tanning removes corrupting or impure matter retained within hide. Pig skin is treated under a rule of intrinsic impurity, so tanning does not alter its underlying status.
Therefore the general wording “every hide” is not applied to pig skin: the explicit exception governs it.