Some of the worlds best music was written in a time when copyright just didn’t exist and nobody cared about composers using/rephrasing each others music.
The process of selling recorded music of course makes a difference, but it’s not inherently morally better that other musicians are forbidden from ‘stealing’ a good idea when they hear one. It’s just the way the economy has evolved.
For human creativity itself the whole copyright system is a net loss.