And if it wasn‘t for gravity, everything inside the atmosphere of planets and stars would be rushing to fill that vacuum. Nature abhors a vacuum, but that‘s only tempered by the fact that there are more powerful forces than vacuums.
On earth, matter only rushes to fill vacuums because the surrounding air or water pressure pushes it in.
My limited understanding was that 'pressure' is just a simplified way of speaking about statistical mechanics.