The loss of his parents created a void inside Sasori's heart. He couldn't fill this void with anything, not even with puppets that looked like his parents. Thus, he turned evil and joined the Akatsuki later in his life.