Are these girls just immature?

I’ve had this a couple times now I would make eye contact with a girl. and she would just go and talk to another guy trying to make me feel jealous. and not that they weren’t attracted to me I just don’t understand. why do this I was going to approach her but this just ruined it for me honestly.
Are these girls just immature?
Post Opinion