Etymology
Today it means: Oh my God! Full definition →
In imitation of oh my God.
Etymology from Wiktionary, CC BY-SA 4.0.