Something has to come in contact with the water and will inevitable be exposed to the oxygen.
The choice of materials appears to be one for performance reasons:
The authors pointed out that their approach is general enough to work on other semiconductor substrates and to integrate other catalysts, allowing for fine-tuning of electrodes to maximize performance.
Can't they just wire the silicon in the solar panel to copper wires and put them in contact with water and oxygen?