https://www.x.org/releases/current/doc/man/man4/mousedrv.4.x...
"""
Option "ButtonMapping" "N1 N2 [...]"
Specifies how physical mouse buttons are mapped to logical buttons. Physical button 1 is mapped to logical button N1, physical button 2 to N2, and so forth. This enables the use of physical buttons that are obscured by ZAxisMapping. Default: "1 2 3 8 9 10 ...".
"""
I think it's more convention, as the applications are ultimately what are deciding to do with the mouse button. There's nothing to say that they could not put a context menu on the left click.
[0]: https://github.com/torvalds/linux/blob/4a0fc73da97efd23a383c...
That said, I do think it would be nice to have written down that 8/9 are commonly used as backwards/forwards. They are just not explicitly backward/forward buttons though.
[0]: https://wayland.app/protocols/wayland#wl_pointer:event:butto...
[1]: https://github.com/torvalds/linux/blob/4a0fc73da97efd23a383c...
Anytime I've ever had to map extra mouse buttons I've always had to do a discovery step to figure out what "button number" any specific mouse button mapped to.