Captcha is not used to prevent a DDOS attack. It is used to prevent access to bots. You can read up about it here:

https://developers.google.com/recaptcha/