It IS pretty confounding, but that which you describe is also SCRIPT.
Women want what they can't have (men do too!). SHE may not want it at the moment, but she damned sure doesn't want anyone ELSE to have it tho, either.
Couple that basic natural instinct with the fact that a man is much more attractive when he's GALing and displaying a confident air of "he-who-cares-the-least," and you've got a pretty potent aphrodesiac.