Because that's what the US Constitution requires [1]:
"To promote the Progress of Science and useful Arts, by securing for limited Times to Authors and Inventors the exclusive Right to their respective Writings and Discoveries" (Emphasis added)
[1] https://www.constituteproject.org/constitution/United_States...