I don’t think God got up one morning, smacked his forehead with the heel of his hand and said, “Fossil fuels! I didn’t factor in fossil fuels.”
Remember God’s dialog with Job:
Job 38:25-27 (ESV)
Who has cleft a channel for the torrents of rain
and a way for the thunderbolt,
to bring rain on a land where no man is,
on the desert in which there is no man,
to satisfy the waste and desolate land,
and to make the ground sprout with grass?