Both a cat and a dog are predators with a hunting instinct (the degree of its intensity varies both between breeds and within the same breed). But cats and dogs hunt in different ways: dogs drive their prey into a flock, while cats ambush their prey.
In this video you can see how a puppy tries to “hunt” a cat.