Kanye and Taylor Swift

Soooo if Kanye took the video and he edited it to look like Taylor was lying how did the whole video get leaked?

Why would Kanye or Kim leak it though if it would essentially make them look bad?