For those who would like more detail on this, the major case on this in the US is Feist Publications, Inc., v. Rural Telephone Service Co., 499 U.S. 340 (1991) [1].
This is not necessarily the case in other countries. See [2].
[1] https://en.wikipedia.org/wiki/Feist_Publications,_Inc.,_v._R....
[2] https://en.wikipedia.org/wiki/Sweat_of_the_brow