Hm, I guess there is no law. But why would so many manufacturers include this unless there is some legal reason or other pressure on them to do so?
Counterfeiting was a big worry as high-resolution color printers became cheap. They did it motu proprio just like today ~all AI gen services watermark their outputs.