why did jon kill dany?

best answer
The longer answer Because she went mad and killed everyone in Kings Landing and showed no sign that she was going to stop killing people. And because it was objectively the right thing to do....