Answer: It absorbs harmful ultraviolet radiation from the sun, helps keep Earth's surface warm via the greenhouse effect, and reduces temperature extremes between day and night. ... So, thanks to gravity, although some of Earth's atmosphere is escaping to space, most is staying here.
Step-by-step explanation:
Hope it helps