The idea is that if a robot can’t read the image, then it must be a human solving it. This is often done using images that are difficult for computers to process but easy for humans.
CAPTCHA stands for “Completely Automated Public Turing test to tell Computers and Humans Apart.” The purpose of a captcha is to determine whether or not the person solving it is a human or a robot.