Where do you think the desire to have sex comes from, logic?
Our motivations--emotions--desires, are shaped in us by evolution.
And every living creature has always had sexual desires. That's just how it is. Evaluational behavior, would mean that nobody and nothing had any sexual desires at forst, but that those desires evolved; which is utter nonsense fro them gitgo!