bro same issue with me. however i tried to disabling recaptcha 2 module and tired to run script then this hcaptcha loaded, but in my script i need both recaptcha and hcaptcha module working than this problem arrives.
In the browser, all these scripts are executed automatically, if you work with the site via the http-client, then you will have to execute these scripts manually.