LLMs are Frequency Pattern Learners in Natural Language Inference