Kaguya never intended to hurt others. Unfortunately, her mind fell into ruin from the corrupt Chakra Fruit and turned her against everything and everyone. But through a simple conflict between her and a Jinchuuriki named Naruto hundreds of years later, she was freed from the corruption and could see the world for what it was. She also began to see her savior for what he was too.