they contain a compound that is broken down into Hydrogen Cyanide, a well known poison especially in old crime novels.
They contain so little of it though and you'd need to chew the seeds well to release it (otherwise the seeds are likely to pass whole through your digestive system), that in practice you'd need to chew vast amounts of apple seeds to have an effect.