Coal,oil and natural gas are called fossil fuels why are they given this name

Coal,oil and natural gas are called fossil fuels why are they given this name