The black pawn on e6 has no defender, and Black's king is far away on e1. Ke5 attacks it at once and, just as important, still guards White's own pawn on d4. After Kxe6 the d-pawn runs to the queening square and Black's king is too far behind to catch it.
What to notice
A good king move often does two jobs, attacking an enemy pawn while protecting your own. The tempting 1. Ke4? is one move slower: after 1... Ke2 2. Ke5 Kd3 3. Kxe6 Kxd4 both pawns are gone and the game is a draw.