A CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is primarily for:
Distinguishing a computer from a human, primarily to restrict the access
Supporting multifactor authentication
Provide a secure channel for client server communication
Providing a friendly interface between human and computers