AI struggles with detecting rare or logic-specific bugs in niche codebases because there's insufficient labeled data to train on these unique error patterns. Silent logic failures, which comprise over 60% of faults in AI-generated code, pass basic tests but fail in specific edge cases, highlighting the need for more nuanced and context-aware bug data.