Why is life on Earth confined to such a narrow layer near the Earth's surface?

Why is life on Earth confined to such a narrow layer near the Earth’s surface?