There was a time when music was sold as sheet music. Somehow Joplin was making a $100,000 a week in the 1920's, even though it's fairly trivial to simply hand-copy someone-else's work.
Sheet music is cheaper than the cost of copying by hand. This doesn't mean that copyright laws were useless though -- without them, someone else could have set up their own printing press and started (cheaply) printing their own copies of Joplin's work.
Until recently, the only marginally profitable (in the economic sense) form of copyright violation was mass reproduction, requiring extensive capital costs. This made it easy to enforce copyright laws: You can't sell many thousands of copies of anything without attracting attention.
Everything changed when it became possible to make a profit by making a single illegal copy of something.