The chemical released during sex is oxytocin and it's responsible for bonding. For women, it's released during sex and when breastfeeding. The reason why men are more likely to not have as strong of a connection and are able to have that detachment is because testosterone actually suppresses oxytocin, so its effects aren't as strong (: