Question: why kaguya came to earth?
Answer: A millennium ago, Kaguya arrived on Earth with Isshiki Ōtsutsuki to harvest a God Tree of its Chakra Fruit, with which she was to provide for the main family of her clan from another world. ... In doing so, she awakened the Rinne Sharingan and became the sole person on the planet endowed with chakra.