It’s called cannibalism.
I’ll never forget watching our cat eat hers after delivering a batch of kittens. I must have been about 8 years old but even then understood that she was doing the kind of thing which separates animals from humans — and vice versa.
It’s why they have abortions to keep the supply up.