Why is a moon not a planet?

A planet orbits a star such as the sun. A moon orbits a planet.