Wait a second… A new theory just came to mind for why Kotarou was on the Moon in the first place and that whole conversation with Kashima Sakura.
What if the reason he came to the moon and kept respawning on the moon was to get close to Kagari to kill her? Something like his instincts from his life on Earth screaming out his need to destroy The Key and save Earth…