Sweetie wasn't eavesdropping! She was concerned for her sister, and ended up learning more about Rarity than she probably ever wanted to know. Before she can run back to bed and forget the whole thing, she gets some unsolicited advice from somepony she never expected to see after-hours in Carousel Boutique.