Kate had sent a letter to the fictional Team Righteous hoping they would come and save the village from a bunch of robots. When Team Rocket appeared out of the sky, having been blasted by Pikachu's thunderbolt, she though that they were the real Team Righteous.