I read about a study a few years back that required participants to spend some time with a member of whatever gender they're most attracted to. Each pair was required to (I think) do something slightly exciting and challenging together, talk about something significant, and look into each other's eyes a lot.
If I remember it correctly, several of the pairs from the study were engaged shortly thereafter.
So the answer to your question is simple, but not for the reasons you think.