During sex, "feel-good" hormones oxytocin and endorphin are released, says psychology professor James CoanPh.D. Having sex helps build trust and connection between partners because they come to associate one another with these positive feelings.