The US Government has a STIG (Security Technical Implementation Guide [1], a government-proprietary term for "IT policy") that requires that you disable Dev Tools in IE [2], Edge [3] and Chrome[4]. Their justification (from [1]):
> Information needed by an attacker to begin looking for possible vulnerabilities in a web browser includes any information about the web browser and plug-ins or modules being used. When debugging or trace information is enabled in a production web browser, information about the web browser, such as web browser type, version, patches installed, plug-ins and modules installed, type of code being used by the hosted application, and any back-ends being used for data storage may be displayed
I wish I were making this up.
[1] https://en.wikipedia.org/wiki/Security_Technical_Implementat...
[2] https://stigviewer.com/stig/microsoft_internet_explorer_11/2...
[3] https://www.stigviewer.com/stig/microsoft_edge/2021-02-16/fi...
[4] https://www.stigviewer.com/stig/google_chrome_current_window...