<< Is it because the oscillations that are coming from the microphone become amplified again and again as it comes closer to the speaker? >>
Feedback can do this also, depending on the room and amplifier setup, it can start off as just a short feedback ring or burst or can be very long in duration.