This interjection is perhaps most commonly associated with surprise parties, where the person in whose honour the party is held is made unaware, until an opportune moment where the participants leap out and shout "surprise!"
When did such usage first appear?