She has a sapphic crush on you and is not sure if she could maintain self-control if you two would ever happen to be alone in one room.
As for the general thing: no idea. I guess it often a competition and hierarchy thing but that's so boring and predictable that I think there are other factors involved.