Having spent as much time with the students as she has, Applejack has a pretty good feel for when something is bothering them, and right now, she's definitely getting that feeling from Sandbar. So, when classes finish, she asks him to stay behind to find out what's on his mind.