Why do people have sex?

This may be a silly question, but I’ve been thinking about it a lot lately. I mean what about sex makes it so universal? Does it just stem from our biological urge to survive and reproduce or has it become something more? Why does sex make us feel good and connected to the other person?