Attention seeking or not. People just want to inform their friends and other people that they're leaving. Personally, I think it's better than saying absolutely nothing when leaving your friends. You wouldn't want to leave your good friend without saying a good bye. For me, it doesn't feel right, just leaving your friends without saying anything.