Pretty much that. I work in manufacturing and as a courtesy we let each other know if we are leaving the line. I generally turn to the person behind me and say, ” I have to use the bathroom, I'll be right back.”
There are a few people who will just announce to whoever is in the area things like “I've gotta take a piss/dump” or variations of that.
Is this something that only irks me? Because I really don't need to know anyone's bathroom habits at work.