It wasn't always this way. If you look at the Old Testament laws, you get a glimpse of a highly ritualized culture where everything has its strict place in the community, including sex. A lot of those laws made social sense in their original context.