The doctrine was made in response to the possibility of war, threatened as a result of the USSR’s attempt to use the Suez War as a pretext to enter Egypt.
The British and French withdrawals from their former colonies created a power vacuum that communists were trying to fill.