I think the "bad practice" came from office works writing their password on a post-it and sticking it to the side of the monitor.
This still happens unfortunately. Too many places I visit have exactly what you're talking about, although it does make my life a LITTLE easier if I need access to that machine and they're not around hehehe...