Try getting a rock, and standing on it. Can you squish it smaller? No. Now, if you stand on that rock for a long time, it won’t get squished just because you stood on it for longer. And you can try that with any object – it may take a little while to squish at the start, but then it stops squishing and just stays a fixed size.
That is why the Earth isn’t getting smaller due to gravity. Gravity has already squished it as much as it can, it can’t squish it any smaller.
Incidentally, this is why the Earth is round. If you take some clay or Play-doh, and squish it equally on all sides, you will end up with a sphere. Gravity has squished the Earth into (almost) a sphere.
Latest Answers