The similarity that should be included is:
They both orbit larger objects.
Both moons and asteroids can orbit larger celestial bodies, such as planets (moons) or the sun (in the case of asteroids as they are part of the asteroid belt orbiting the sun).