Programming is rightly considered by some (the enlightened) to be art. Most people program (provided they have enough rigour and common sense) but writing beautiful code is an art! Just look around you, how many artists are there?
So excellent programmers do not simply write code but compose code and in some way it is akin to music. (Indeed Pythogoras was among the first to notice the connection between maths and music – that guy was fond of numbers and he basically introduced the concepts of cotave, fifth, fourth,… that we still have in music.)
So if coding is an art, people should learn to appreciate beautiful code as people admire famous painting. A simple test to know if you are a master programmer would be: Can see the beauty of an artistic piece of code?