This website contains age-restricted materials including nudity and explicit depictions of sexual activity.
By entering, you affirm that you are at least 18 years of age or the age of majority in the jurisdiction you are accessing the website from and you consent to viewing sexually explicit content.
This is likely in the context of abortion bans in some US states. Presumably they still trust the doctor to do a regular checkup for everything else.
And, the doctor may not have a choice. Even if they’re asking for purely medical-history reasons, they may have to put the information into a system (according to their employer or insurance company or for their own records), and that system may be subject to information gathering from hostile parties.