Different sizes are used for different age groups.
Note that the ball used for all competitions (men's, women's, and mixed) in the formalized halfcourt game of 3x3 combines characteristics of the size 6 and size 7 balls.