It's a tricky issue. In many countries it's not illegal and quite common for children to run around naked in public, during the summer on beaches for example, and so millions of people have holiday photos that are technically CSAM in their possession that they don't even know they have.
CSAM must be for sexual gratification usually. A medical anatomy textbook isn't CSAM.