An example of misattribution of arousal. A person feels attracted to another because they meet under exciting circumstances.
Frequenly used in fiction as a way to cause characters to become attracted to one another–place the two characters in danger together, sparks fly.