The moons stay in orbit around Jupiter by the force of gravity, the gravity pulls the moons towards Jupiter, however to every force there is an oppisite force, in
this case the other force is pushing the moon away from Jupiter so it stays in a correct orbit and doesn't go off track and hit the planet.
this case the other force is pushing the moon away from Jupiter so it stays in a correct orbit and doesn't go off track and hit the planet.