Edit: A quick search reveals that, of course, you can still buy them today. I have not felt a need for one in ages.
A mechanical hard drive could at least theoretically have a physical lock attached to the drive head which prevents it from approaching the platters if it is engaged.
Back in the EPROM days, that was easy, just don’t supply 25V or whatever.
Modern flash still needs those high voltages but generates it on-chip via charge pumps. If your read-only switch physically disconnected the charge pumps, you would have read-only flash.
If there is a way to make them writable via software, that would be very interesting (and dangerous).
... and you could absolutely build similar functionality into a flash chip. But most likely you can't actually buy such chips, at least not with any real capacity.
I may need to read some of its files on a not-very trusted device, and I don't want to risk that device also tampering/trojan'ing other files, like backup copies of the software needed to decrypt the data files.
A simpler scenario might be a USB stick that I use for carrying files to be printed at the local library.
Also because some of the software included in Medicat is flagged by some anti-virus software and I don't want them removed.