Entropy can be defined as the logarithm of the number of microstates in a macrostate. Since transition between microstates is reversible, and therefore one-to-one (can't converge on any particular microstate, can't go in cycles, have to be something like a random walk) we're more likely to end up in a macrostate that holds a larger number of microstates.
For example, there are many more ways your headphone cord can be tangled than untangled, so when you pull it out of your pocket, and it's in a random state, then it's very likely to be tangled.
If entropy causes gravity, that means there are more somehow more microstates with all the mass in the universe smooshed together than microstates with all the mass in the universe spread apart.