Why a diode is in parallel with the current source in the equivalent circuit of a solar cell?
The diode in the model is telling you that the output voltage of the cell is limited. A diode in series wouldn't limit the output voltage at all, and that is not the way the cell behaves.