Both the cat and the dog are predators with a hunting instinct (the degree of its severity varies both between breeds and within the same breed). But cats and dogs hunt in different ways: while dogs drive their prey in a flock, the cat jumps and ambushes its target.
In this video, we can see a pet owner trying to teach a dog to be friends with a cat.