Probably how they cue the script.
You would use a string search or something of the like and the # symbol differentiates from normal conversation so the scripts don't pick up random babble.
… I guess?
For some reason the hash/pound sign has become common to index the post to search tables.