A diode allows the current to flow in one direction. Hence, it prevents reverse current flow. At low light intensity, a diode prevents the battery from discharging.
Overall, a reverse charge blocking diode is a protective component in a solar charging system. However, if you use a controller, a blocking diode is not mandatory.