That’s important because if the person is pregnant, treatment with prescription medication can be fatal for the child. They usually ask about sexual activity because it’s possible the person doesn’t even know they’re pregnant.
Men do not get asked this question because as you may or may not know, biological males are incapable of becoming pregnant.