This simile compares Sam's home to a pigsty (where pigs live) WITHOUT USING "LIKE" OR "AS", meaning it is a metaphore. It means that Sam's home is very messy. He probably does not clean often and leaves dirty clothes on the floor. A metaphor is not always as easy to understand and can sometimes be understood in different ways by different people or in different situations.