Toys in boxes do not become conscious until they are opened; this is seen in the first movie (when Buzz arrives), and in the toy store. Stinky Pete is in what appears to be an unopened box, but we find out that it has been opened; presumably, doctoring the box to appear unopened was another job by the cleaner.