The only thing I can think of is that it grew out of the fact that if you just typed "
[You must be logged in to view images. Log in or Register.]" it would become an emote:
Soandso )
But that doesn't completely explain why people would do it in the middle of sentences.