The strong, and also the weak, nuclear forces only act over very short distances. The strong force hold the nucleons together in a nucleus. They don't have long reaching effect.
Gravity, and also the electromagnetic force, act over much longer distances. Only gravity has the range to keep planets in orbit around a sun.