I had a dream about seeing my friends at school and it's because I've been thinking of them lately and how they will feel when I leave.
They can also mean simply that you've recently encountered something in your waking life that reminded you of them — maybe something pleasant, like a band you both liked.