Why do doctors ask are you sexually active? And does it matter if you lie to them?

I’ve recently become sexually active but I’m 16 and therefore still go to the doctors with my mother, and I don’t want her to know.