Teams Rest API does not support LDAP

For GHES, when a new team is created manually using GitHub UI, it supports LDAP group. However, when using Rest API, there is no such option. Why is that so ?