Oh come on - I don't care how thick the bag is, no-one would mistake a cat for a pig. That is obviously not where the sayings come from.
Additionally, I'd point to the "pig in a poke wiki" page.
http://en.wikipedia.org/wiki/Pig-in-a-poke
The page shows that variants of this idiom are present in hundreds of languages, often with the statement that a person bought a cat instead of a pig or, occasionally, as rabbit. In fact, more culture refer to buying a cat in a sack than a pig.
The wiki page mentions your cat in the bag theory as well. However, if you follow the references, you'll considered that it is seen as dubious and that the pig in a poke explanation is considered far more likely.