He told you that to get you to take the pregnancy test-they cannot accept you into the service pregnant, and it costs the government less to get you to take a pregnancy test on your own, rather than processing a bunch of medical/other paperwork first just to find you're disqualified.