He lied about me being his first ?

Quick background:

Me & my boyfriend have been dating for awhile. We had sex a few months ago and It was my first time. I asked him if it was his first time he said yeah. Ofc I believed him cus why would he lie about something so small like that feel me. But my best friend has known him for years and used to go to hs with him. She was the one that got us together. We were having sex the other night and the question came up again. This time he told me he first time wasn’t with me but with someone else. I obviously was confused and decided to ask my best friend since they’ve been close friends for years and she told me he used to have a gf in high school and they used to do things. I don’t really care about what he’s done in the past .. the past is the past. But I’m just confused on why he would lie about having an ex gf and me being his first. I don’t think it’s a big deal that I wasn’t his first it’s just the whole lying part that has me fucked up ..