Economic value is created when a human being spends man-hours to produce an artifact that other people need and thus are willing to pay for. Programming is a form of working, as is designing, researching, building, plumbing etc.
The artifact of programming (ie the program) is the value you create by working.
Programs do not by themselves produce value because. if that were the case we would all run "programs " 24/7 on our computers and produce infinite value. Programs help other human beings produce value by putting in the man-hours in a more efficient manner than without the program