How is this fossil fuel natural gas recovered from the ground?

When people mine they get natural gas behind the mining rocks.