It is a dissimilar contraction of the insult "son of a pig (dirty, female pig)", which would be an inefficient euphemism for "son of a bitch".