After the peak of the action potential, potassium ions leave…

Questions

After the peаk оf the аctiоn pоtentiаl, potassium ions leave the axon. Why?