It's not surprising he lied to you or was reluctant/hesitant to say.
Guys are essentially taught and conditioned that virgin in a GUY does not equal good thing. An exception maybe is where the guy has strong religious convictions and then it might be understandable - read "acceptable". No-one wants to be the butt of jokes, singled out. Otherwise it's not socially acceptable & we're actually
taught it's a bad thing to admit to/say you hold a v-card. Magazines like FHM/Maxim etc have oft said in articles stuff along lines of "let's get this clear, despite your desires to go where no man has gone before, girls are not turned on by virgins. A lack of experience means it is more likely that you will not know how/what to do which means she won't get much satisfaction out of it. Realising she will be having to forget about her own sexual enjoyment to correct your inept amateur ill-informed fumblings will *not* make her want to sleep with you or make her attracted to you and you'll be going home alone - for a long time." Okay well the articles say something along those lines anyway.
There's probably an element of it not being deemed a good thing to admit to since stereotypically guys are 'supposed' to sow oats

, and to be someone who has had other successful relationships (and if they didn't include sex that might suggest to girl in question something's wrong). Plus some guys have shitty conversations where they ask what each others magic number is (number of people you've slept with). You do _not_ wanna be coming out with "zero" unless you're v. religious, and having it all around the university and everybody & their dog laughing. Because... it is not the expected thang. Plus people talk, girls talk, their bf's hear it, yadda yadda... soon everyone'd know. And I can't see someone pondering mentioning such a thing without thinking the girl in question is gonna be thinking: (unless the guy has gaping facial sores and they both know no lady was gonna have jumped him before

) what's wrong with him, 18,20,22,24,26 years whatever and
nobody?? is the boy small?, couldn't ensure a girl would hang around long enough to be intimate - does he have social skills problems?, why did nobody want to sleep with him when it came down to it? let alone thinking she'll be assuming he'll be crap in the sack unless she decides he's been blessed with an instinctive flair and'll take to it like a duck to water, etc etc etc. Anxieties like that.
That's why he wouldn't say. Or a guy in a situation like that wouldn't say. He wouldn't want it all to end if he liked ya. And yeah sure, you might wanna think "what sort of a person does he think I am, it wouldn't matter!" but... that's the way society is. Men are taught to act.
All very sad but true.