Sometimes as an administrator or service center of a web site we would like to show whether we are online or not so that the customers know that they could contact us directly (if we are online).
Or simply as an individual we would like to allow our visitor to see us whether we are online and able to receive any instant message.