Similar Items: Pretraining Exposure Explains Popularity Judgments in Large Language Models