It may as simple as your seeing people during the day that remind you of old friends, or you unconsciously overheard a conversation which unconsciously reminded you of old friends, or you saw someone on TV, or any other un-associative thought or memory. Then you dream of them.