How it works
Rules for every case would never end. A pointy ear does not always mean cat, so the rules break.
Machine learning is a different idea: the machine learns patterns from many examples, like a hundred photos each labelled cat or dog.
It does not understand pets. It only finds patterns in what it is shown, and it can be sure and mistaken.
People check a machine's work, and for anything that matters, people decide.