The microphone picks up the sound from the speakers and the PC sends it back to the speakers, even louder. And so on, and so on. It ends with a continuous beep.

It should stop if you lower the speaker volume from the PC or have the microphone further away from the speakers.