Having had a bunch of cats, I can tell you this. Cats are very territorial. Even if you have more than one cat, they’ll find a spot they claim as their own. They’ll be very possessive over that spot, and anyone who comes near will get a swat.
Some dogs and cats do get along, other times...