Why is there male and female?

Long time ago, there were only one gender cells. Then one day, a cell was infected with a disease, a DNA disorder, and reproduced offsprings of male and female (two different kinds of gender).

This is a model of a normal cell (one gender).
model of normal cell

The cell starts growing.
Cell starts growing

The cell starts splitting.
cell starts splitting

Splits into two