Oil and gas reservoirs form in geologic "traps" that are analogous to confined aquifers. Thus, the fluids are held under pressure in the subsurface.