OK, one more try.
The basic elements of carbon, hydrogen and oxygen are a major part of planet Earth.
At some depth the temperature and pressure are just right to force these ingrediants to form oil and gas.
Ain't that hard to undersatnd. Not like Fibonacci numbers or something!