The only purpose of hydrogen is to make energy in one point in space & time and then use it in another point of your choice without CO2 emissions. Solar is to convert sunlight to electrical energy, but you don't get to control when the sun is shining. The technology to generate hydrogen is also completely mature and has been since before I was born, whether we are talking steam methane reforming or electrolysis. It's just not very cheap.