To date, no one has explained why there are two genders, what the origin of said genders were and why a machine-based species even bothers having remnants of a dimorphic species (reproductive genders) if they were always machine-based having no previous organic origins. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.