usually people say it when they're bored or can't think of anything else to say or talk about(especially over instant messages)
*it doesnt always have to be spelled 'uggg' there can be more 'g's*
screename1:hey wats up?
screename2:hi nm u?
...a couple minutes later of not talking...