1965 War

Why is it that whenever Pakistan is winning the war, some traitor stops the war.
It happened in 65
It happened in Kargil.
Am not sure what happened in 1948 though
Even in 1972 it was a mistake by some general.