It’s because you’re talking about absence or the negation of presence.
You’re sentences say:
1. There are not any books on the subject.
2. There is not a single book on the subject.
(1) uses the absence of multiple and (2) uses the absence of single. Neither actually uses zero even though the quantity indicated is zero.