Fertilizer production is an ideal match for solar power because it's not time sensitive; it can happen when the sun is shining. Or put another way, producing energy-intensive stuff like fertilizer is one way to solve the problem of storing solar energy.
Fossil fuel is not just an energy source. The Haber process requires a chemical feedstock -- nitrogen gas and methane, as I understand it. I don't know if anybody has found a pathway for making ammonia from e.g., the hydrogen in water, that's even remotely efficient.
I found this tidbit interesting from the Haber process wiki page: "Nearly 80% of the nitrogen found in human tissues originated from the Haber-Bosch process" and yet only "3–5% of the world's natural gas production is consumed in the Haber process"