But previous it didn't show hcaptha when i enable under attack mode....To be short, you cant. When you activate "Under attack" more Cloudflare tries to protect your website from unwanted requests, that is why it shows hCaptcha, to make sure real people visit your website, not bots.
About hCaptcha you can read here.