De rigueur is an adjective that means required by custom or etiquette.
Coming directly from French, de rigueur’s literal translation is ‘of strictness,’ but a better way to understand it is to think of it as meaning ‘according to obligation or convention.’
There was a time when wearing a hat in public was de rigueur for men. There was really no reason for this except for social custom.