While they have some contrasting traits (dogs are typically more social and playful, while cats are known for being more independent), they are not directly opposite in meaning.
Think of it like this: "apple" and "orange" are not opposites, they are just different types of fruit.