The second and third examples are safety lockouts [0] working as intended: Some system is locked in the off state to ensure safe access for technicians.
Especially the padlock lockout is simple and effective: As long as you have the key in your pocket, you can be sure than no one is going to turn on the meat grinder you are cleaning.
Creators of some keyboards placing a sleep button right above arrow keys didn't bother doing this.
[1] https://www.youtube.com/watch?v=se0F1bLfFKY
[2] https://cpc.farnell.com/rjs-electronics/rjs-k16-391-ge-65j/i...
For the power button is located next to two USB ports I use and, for whatever reason and although it's a very good PC tower, the button is ultra sensitive.
So I created a "not-molly guard" that "plugs" into the two audio jacks (which I never use and which are, also, next to the power button) and that only leaves a narrow hole and a guardrail of a few millimeters.
Printing it in black, matching the tower's lip where the power button is, and life is good. Already hit that Molly guard several times by mistake so I figured out I already saved more time than it took to design it.
As it's a small piece, it printed in a few minutes on the 3D printer.
P.S: AFAICT there's no software setting (?) to prevent the power button from doing what it does!? But who cares, I've got the Molly guard now.