Question: why itachi killed his clan?
Answer: It's eventually revealed that Itachi didn't murder his clan in cold blood. In fact, he was ordered to murder them by the leadership of his village to stop a coup d'etat, meaning that he acted in his village's and Sasuke's best interests the whole time.