Hydrogen can be produced from nuclear, as well as hydro power. If produced in off-peak times (at late night) in bulk it can be efficiently produced and then distributed to filling stations. With at-home production units the distribution system can be largely removed at the expense of slightly higher per unit cost and less efficiency than bulk.
Synthetic petroleum is produced from coal, oil and natural gas, carbon energy sources that don't help reduce environmental footprint.