Discord’s support page states that it’s an experimental feature, currently tested in the UK and Australia, probably complying with their digital safety laws to protect young users. Screenshots suggest that the technology is provided by k-ID, which specializes in automated age verification.
Source: gamingonphone.com