Default [Q] Connecting to a computer

Sometimes after a phone connected to the computer can not see all folders Then restart the phone and reconnecting The problem is solved.
why?