Princess Luna caused everypony in Ponyville to share a dream. That means that everyone could see each other's fantasy desires.
Big Mac had a secret, and now Applejack knows about it. She questions him.
(Contains spoilers of season 5 episode 13: "Do Princesses Dream of Magic Sheep?". I recommend watching that first.)