Have you ever had a boyfriend?

in the past I liked this guy, he liked me but we never went out but he would ask random questions like have you ever had a boyfriend? I have heard of `do you have a boyfriend?` but why this question when I asked him the same question he said yes buy I know for a fact that the never had a girlfriend?
Have you ever had a boyfriend?
Post Opinion