Humanity domesticated cats (or at least allowed them to be closer to us) because they kill mice, rats, and other pests.
The Black Death was pretty much caused by the killing of cats in the witchcraze. They killed cats, the rat populations increased, and the rat carriers spread plague.
They have been necessary. Why do you think cats play? They are just practicing hunting.