>> guarantee the presence of fossil fuels
Absolutely not. Just recently a bacteria (or maybe an archae, I can't find an article) was discovered that efficiently breaks organic matter in anaerobic conditions. There is a sharp decrease in the amount of coal formed after that bacteria evolved a few dozen million years ago.
It's just an accident, that we are the 1st life form capable of extracting the energy from fossil fuels.