Why don’t some guys understand this?

Girls, do you think I was wrong for this?
So I was at the gas station and this guy came up to me saying excuse me miss do you have a boyfriend. I lied and said that I did then he continued to talk and say can you at least add me to the book and can we be friends and I said no. At least he walked away after that. I only lied because he wasn’t my type. But why don’t guys just stop when we say we have a boyfriend?
Why don’t some guys understand this?
Post Opinion