Harry had told her about where Romilda Vane had tried to slip him some chocolates. He had never touched them but apparently Ron had been hungry and got into his stash. Someone had brought him Professor Slughorn, since he was the Potions Professor. He would have figured they would have brought him to Madam Pomfrey and the professor could have been summoned if needed.