it is because they are actually fossils.they are made of dead and decay matter burried under the earth for many years.the dead and decaying matter under great amount of pressure and temperatures turn into fossils.and these both are used as fuels so it is called fossil fuels. 
1 5 1