I believe the gravity keeps it from diffusing out too much. The high temperature creates a pressure that keeps it from collapsing into balls. Not an expert though!
We know what kind of gravity it takes to keep particles this hot together: this is how we have stars. But it's hard to see how gravity can keep an object this vast, diffuse and energetic together.