There is no legal justification for ever saying those dates, much less their department and role. I have never heard of any HR department saying anything of the sort, even if this is an oft-quoted meme of HR. I suspect you have actually never worked in HR to provide such statements, you are merely speculating.