Programming is less like the category "music" and more like the specific genre "sampling", in this case. Much of programming is reusing other peoples "samples", integrating them in new and useful ways.

In music, we have largely accepted that sampling is legitimate (though that did take some fighting to achieve), and that the musicians making music this way are legitimate artists.

https://en.wikipedia.org/wiki/Sampling_(music)