I think a key difference is that most programming careers, the artistic outlet (code) is not what is being sold to customers. The customer might feel something if the app works fast, but they won't feel anything about the fun bit packing and struct-of-array design you did for personal enjoyment
Sure but most day to day professional photos are not shot because the subject is so interesting or the composition is so intriguing. They are shot to accompany a flyer, sell a product or to give a grandchild picture to their grandparents, or to get a picture on your drivers license. Even though the photographer uses a lot of techniques and knowledge to frame their shots and get a good picture, artistic values that is often not the function.