women are more ruled by their emotions in relationships than guys, true.
but a big part of attraction is ruled by human instinct and the need to survive. those who are superior (more evolved, if you like) would be the ones chased by others
think of the term "nice guys finish last".
a confident woman of value will constantly have nice guys trying to please her because they think "if i'm nice to her, she'll be nice back to me and we can maybe date". he's just like the other 20 guys who wanted to buy her a drink, bring her coffee and constantly compliment her.
now imagine she meets a guy who isn't chasing her? he's teasing her a bit, making her laugh and not complimenting her. instead of taking her coffee at the office, he walks past her saying "hey, want some coffee?", she says "sure" and he says "cool, espresso for me please" with a confident, slightly cocky smile. now, of course he's not going to make her get him something so he'll follow up with "what? you wanted me to come with you? cute

come, lets go"
she gets up, dumbfounded, and walks with him.
he sparks interest and attraction because:
1) he's different
2) he's not interested in her (she thinks)
3) she doesnt understand why he's not interested
4) he teased her and subconsciously planted the idea that she likes him in her head with his followup.
5) he's demonstrating high value by being confident and ballsy, yet still being a gentleman.
this causes her to think "wow, he must be used to being around a lot of women of value, and i dont measure up". through his apparent disinterest he has shown her that he is superior to the rest. now she feels the need to impress you, just like the nice guys did to her.
this is a VERY VERY simplified explanation and there are a lot of other factors that come into play... ASD theory, comfort, DHVs, kino, false takeaways and IODs etc. this is also why women are attracted to *******s, because even though they aren't as charismatic, well mannered etc, they still show disinterest which makes the woman in question self conscious, lowering her guards and allowing him to stuff with her life.
what seemed to have happened here is that she knew she could have you, but the loser guy pushed her away a bit, then pulled her back when he seemed interested again by being worried that something will happen. that push-pull, hot-cold effect that's created brings me to my next point...
cat string theory: if you dangle a bit of string just out of reach of the cat, it will jump and try to catch it. but if you drop the string to the ground (constantly pulling), the cat loses interest and walks away. similarly, if you hold it too far away (constantly pushing) the cat will realize that it wont get the string and will go find something else to do.
google it, its been proven time and time again.