It kind of feels like the demon did this on purpose. He filled the grand master's head with thoughts about the supposedly greatest sister in the universe, and then, mysteriously, the sister ended up in the grand master's hands. It's almost like an arranged marriage. In the end the demon, considered an evil cultivator, couldn't have simply asked the grand master to take care of his sister.