Here's why:
* Gravity: Larger planets have stronger gravity, making it easier for them to capture and hold onto smaller objects, including moons. This is a major factor in the number of moons a planet has.
* Formation: Planetary systems form from a disk of gas and dust. The size and composition of this disk can influence the number of moons that form around a planet. Some planets may have formed with more material available to form moons, even if they're not the largest.
* Migration: Planets can migrate through their star systems over time, interacting with other objects and potentially gaining or losing moons.
* Capture events: Moons can be captured by planets through gravitational interactions. This can happen at any point in a planet's life.
Examples:
* Jupiter: The largest planet in our solar system, it has 79 moons.
* Earth: While much smaller than Jupiter, it has a single moon.
* Mars: Even smaller than Earth, it has two small moons.
This demonstrates that size alone doesn't dictate the number of moons a planet has. Other factors play a crucial role, making it a complex relationship.