Second hand Embarrassment

So, went to the AIIMS Nagpur for usual stomach pain issue due to food poisoning as my Mess food is so worse. While checkup, the doctor asked me "Did you had sex?" nd my virgin ass was like 'No'(embarrassed af). I don't know why he asked as my concern was around stomach pain.