The domain name is not a public domain, so the certificate on it is not issued by Let’s Encrypt rather by Caddy’s internal CA.
Public certificate authorities, e.g. Let’s Encrypt, do not issue certificates for non-public domain names which they cannot verify. If you want curl to recognize the certificate, you’ll need to extract the root certificate from Caddy’s data directory and install it into your system’s trust.