In addition to sibling replies, function keys are very useful in debuggers (to step in/over, set breakpoints, ...). And lots of other things that don't immediately come to mind.
I'm old enough to remember WordPerfect on DOS, with a paper template to put over the function keys on your keyboard as a little cheat sheet for all their functions.