When publishing a book in Canada, it is an actual legal requirement to send a copy or two to the national library for their collection.
This applies to printed books, ebooks, serial publications, video and audio recordings, maps, microforms, even sheet music.
The materials go into the national library, and one copy is made available for the public, while the other goes into The Archives.