Why does earth have a moon?