Original: Since the microphone is in front of the speaker, the original sound (now coming from the speaker) goes back into the microphone.
Simplified: If the sound coming out of the loudspeaker is heard by the microphone, a loop is created, from speaker, to the microphone, through the cord, and back into the speaker.