Answer:
If no force acted on a gas at all, it would just escape or spread out forever. Gravity pulls gas molecules in towards the Earth's surface, pulling stronger closer to sea level. This means that atmospheric gases are denser at sea level, where the gravitational pull is greater.
I hope this helped, have a great day!