It is a skill they learn from watching their mothers.
If the mother cat is a good hunter, then her kittens will learn to be good hunters.
Interestingly, kittens seem to learn the best from their mothers.
They do not seem to learn as well or as quickly from watching other adult cats.