Companions leave camp to the last point they travelled to camp from. I agree it's less than ideal, though there are some rather severe exploits that could exist were all characters were to be automatically grouped after leaving camp. I understand why it was done.