It's because the only way you can reproduce is by mating with the opposite sex, so nature gave you hormones that made most people like the opposite sex to encourage reproduction and keep the species alive. That's pretty much the purpose of life for most organisms, keep the species going. Humans don't really need to as much anymore. Not all humans need to reproduce to keep us going.