I should have been clearer; it's not just ebooks that are exempt, but anything without an ISBN. You can make a paper book with Amazon print-on-demand that doesn't have an ISBN, and then you don't need to send it to the dépôt-légal.
Many people argue this is bad and should be changed. But it's debatable.