I use caps lock while programming quite a bit for some reason, mainly in C. It might just be habit, but when I want to type something like CONSTANT or MACRO, it's easier for me to do a quick caps-on, constant, caps-off than to hold shift while typing it.
I imagine this isn't a particularly common use case among the general public, though.