[1] - http://delivery.acm.org/10.1145/1290000/1283929/a1974-knuth....
The functions of art include philosophical enquiry and invoking a sense of immanence in the receiver, and so on; creating a program might cause some of these things to happen in the programmer, but only as a coincidence. In his poem called The Scent of the Real, Alvin Pang writes "to bear clear witness/to your longing alone/[is] the only art/there is." Software doesn't do it either, other than as a potential medium for visual art or other forms. It seems likely that new, distinctively digital art forms will evolve, but even then it won't be "the programming" that corresponds to "the art".
An easy way to think about this is to remember those times when somebody in the workplace does something above and beyond expectations, eg. they solve a problem in particularly brilliant fashion, and colleagues see it and say 'this, this is a work of art.'