If you scattered magnetic marbles on the floor and added a little vibration, they’d all clump together. Why don’t stars all clump together as a result of their collective gravity?
or