In order to reduce potential energy each ion tends to surround itself with as many ions of opposite sign as possible.
This tendency results in the formation of closed packed structures. This can also be stated as " The ions try to maximize their coordination with neighbouring ions."